Authentication
Create Repo Token
Create a scoped API token for specific repositories
POST
Repo tokens provide scoped read/write access to specific repositories. They can be used in place of your Relace API key for repo-specific operations.
Repo tokens are strongly recommended for use in sandboxed environments to prevent unintended access to other resources associated with your Relace account.
Request Body
A descriptive name for the token
Array of repository UUIDs that this token will have read/write access to
Optional time-to-live in seconds for the token. If set, the token will expire after this duration.
Response
The generated repo token value.
The name of the repo token
Array of repository UUIDs this token has read/write access to
The ISO 8601 timestamp when this token will expire, if a TTL was set
Using Repo Tokens
Once created, repo tokens can be used as bearer tokens for authentication on any/repo/{repo_id} endpoint that they are scoped for:
Example Usage