Mint a publish token for one of your sources
Signed-in session only: the web cookie session, or the session token from releases login as a Bearer. API keys, machine tokens and OAuth access tokens are refused. Cookie requests must come from the web origin. Mints a relk_ token bound to one source, usable ONLY on that source's POST …/releases/batch route (e.g. from the publish-changelog GitHub Action). Requires a verified ownership claim on the source's organization; the token stops working if the claim or the source goes away. The plaintext token is returned once. At most 5 active publish tokens per source per user.
bearerAuthAuthorizationBearer <relk_… | relu_… | OAuth JWT>Machine/operator tokens use the relk_ prefix; self-serve read-only user keys use relu_; Sign in with Releases supplies an OAuth access token. Required scope depends on the endpoint.
application/json- body
sourceId*string1 <= length <= 64name*string1 <= length <= 200Created publish token, including the one-time secret
application/json- response
token*stringid*stringsourceId*stringname*stringcreatedAt*stringcurl -X POST 'https://api.releases.sh/v1/me/publish-tokens' \ -H 'Content-Type: application/json' \ -d '{ "sourceId": "string", "name": "string"}'{ "token": "string", "id": "string", "sourceId": "string", "name": "string", "createdAt": "string"}