admin
Create a personal access token
Creates a personal access token (pat_) for the signed-in user in their organization. Tokens are created from a signed-in session, never by another token. The requested scopes must exist and must be within the user's own permissions: a token can never carry more authority than the person who created it, and a request that asks for more is refused with each offending scope named rather than quietly narrowed. The token value is returned once and cannot be retrieved again.
post/tokens
Request
- Base URL: https://api.letsship.ai/v1
- URL: https://api.letsship.ai/v1/tokens
- Auth: HTTP bearer
Request body
Example request
{
"name": "laptop CLI",
"scopes": [
"missions:run",
"missions:read"
],
"expiresInDays": 90,
"projectId": "proj_f0e324d8a104d8e4ae9426e4"
}Response
Token created. token is shown here and never again.
Example response
{
"id": "tok-pat-9b8e2a3f",
"name": "laptop CLI",
"token": "pat_yYqk7Fp2R8x…",
"scopes": [
"missions:run"
],
"expiresAt": 1743465600000,
"createdAt": 1735689600000
}Changes
No recorded changes to this operation across all 1 revision of this API.