This endpoint allows clients to generate a new personal access token for a specific user and tenant.
Token successfully generated
Bad request
Unauthorized
{- "name": "string",
- "description": "string",
- "expiry_at": 0
}
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "description": "string",
- "created_at": "string",
- "updated_at": "string",
- "token": "string",
- "prefix": "string",
- "expiry_at": 0
}
Get all tokens associated with the given user and tenant.
OK
Bad request
Unauthorized
{- "count": 0,
- "personal_access_tokens": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "description": "string",
- "created_at": "string",
- "updated_at": "string",
- "prefix": "string",
- "token": "string",
- "expiry_at": 0,
- "legacy_token_id": 0,
- "legacy_developer_app_id": "string"
}
]
}
Renew token associated with the given token_id.
OK
Bad request
Unauthorized
{- "expiry_at": 0
}
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "description": "string",
- "created_at": "string",
- "updated_at": "string",
- "token": "string",
- "prefix": "string",
- "expiry_at": 0,
- "legacy_token_id": 0,
- "legacy_developer_app_id": "string"
}