Skip to main content
A repository is the top-level container for all your work in Alphacast. Before you can create a dataset, you need a repository to hold it. Think of a repository like a project folder: it groups related datasets together, carries a privacy setting, and lets you share access with teammates at different permission levels.

Privacy settings

When you create or update a repository, you choose one of two privacy modes:
SettingWho can see it
PrivateOnly you and users you explicitly grant access to
PublicVisible to anyone with an Alphacast account

Permission levels

Access to a repository is controlled through a tiered permission model. Each level inherits the capabilities of the levels below it.
PermissionCan readCan cloneCan writeAdmin actionsDelete
Read
Clone
Write
Admin
Owner
Only the Owner of a repository can delete it.

API endpoints

The base URL for all repository operations is https://api.alphacast.io.
MethodEndpointDescription
GET/repositoriesList all repositories you have access to
POST/repositoriesCreate a new repository
GET/repositories/{id}Get a single repository by ID
PUT/repositories/{id}Update a repository’s name, description, or privacy
DELETE/repositories/{id}Delete a repository and all its assets (Owner only)

Examples

List your repositories

curl https://api.alphacast.io/repositories \
  -u YOUR_API_KEY:

Create a repository

The name and privacy fields are required. You can optionally assign the repository to a team.
curl -X POST https://api.alphacast.io/repositories \
  -u YOUR_API_KEY: \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Emerging Markets Data",
    "description": "Macro indicators for EM economies",
    "privacy": "Private",
    "team": "research"
  }'
Deleting a repository removes all datasets inside it. This action cannot be undone.

Request body fields

FieldTypeRequiredDescription
namestringYesDisplay name for the repository
descriptionstringNoOptional free-text description
privacystringYes"Public" or "Private"
teamstringNoTeam slug to associate the repository with