Create a scoped access token
Scoped Access Tokens
Create a scoped access token
Creates an opaque bearer token that expires exactly one hour after issuance and is restricted to the requested repositories.
POST
Create a scoped access token
Authorizations
Bearer authentication header of the form Bearer <token>. The token may be a Sourcebot API key, OAuth access token, or scoped access token, subject to endpoint requirements.
Body
application/json
Repository IDs to bind to the token. Every ID must identify a repository accessible to the API-key owner.
Minimum array length:
1Required range:
x > 0Response
Scoped access token created. The opaque token value is returned only in this response.
Identifier used to revoke the token.
Opaque bearer token. This value is returned only when the token is created.
Pattern:
^sbst_Minimum array length:
1Required range:
x > 0
