v5

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

search

Search for master tokens

Default is 30 per page, see response headers for pagination information.

Example request:

curl https://packagecloud.io/api/v1/repos/username/reponame/master_tokens/search?q=prod
get/api/v1/repos/{user_id}/{repo}/master_tokens/search

Path parameters

user_idstring required

The username to which the repo belongs.

repostring required

The name of the repo.

Query parameters

pageinteger

One-based page index.

per_pageinteger

Items per page (default 30). Values above the server's Max-Per-Page are clamped; inspect the Max-Per-Page response header for the effective cap.

qstring

The name of the MasterToken.

Response

Array<MasterTokensResult> An array of {MasterTokensResult} objects for this search query.

namestring

The name of the master token.

valuestring

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

self_urlstring

A URI for this master token. Can be used to destroy one.

read_tokens_urlstring

a URI to get all of the read tokens for this master token.

Example response

[
  {
    "name": "default",
    "value": "e5480f5b38f1f78de2aaa0fa732d1427b1b83113371fd97d",
    "self_url": "/api/v1/repos/somewhere/production/master_tokens/1",
    "read_tokens_url": "/api/v1/repos/somewhere/production/master_tokens/1"
  }
]