v5

latestOpenAPI 3.1.0raw.githubusercontent.com2026-06-167122208.0 KB
master_tokens

index

List master tokens for a repo.

Example request:

curl https://packagecloud.io/api/v1/repos/username/reponame/master_tokens
get/api/v1/repos/{user_id}/{repo}/master_tokens

Path parameters

user_idstring required

The username to which the repo belongs.

repostring required

The name of the repo.

Response

Array<MasterToken> An array of master token objects that belong to this repository.

namestring

The name of the master token.

valuestring

The value of the master token, for use in the read token API.

Example response

[
  {
    "value": "e5480f5b38f1f78de2aaa0fa732d1427b1b83113371fd97d",
    "name": "default",
    "read_tokens": [
      {
        "value": "3fe453060fd7f017219e308eb98ccf273b4c3655ba57577a",
        "name": "app1.somewhere.com"
      }
    ],
    "paths": {
      "self": "/api/v1/repos/somewhere/production/master_tokens/1"
    }
  }
]