Authentication
Use a user-scoped personal access token with the minimum required scopes.
Bearer token
Send the token with every request:
Authorization: Bearer $TETRI_API_TOKEN
Create a token
POST /api/v1/programmatic-access/credentials
Authorization: Bearer $TETRI_SESSION_TOKEN
Content-Type: application/json
{
"name": "My integration",
"audience": "programmatic_api",
"scopes": ["wallets:read"],
"expires_in_days": 30
}The plaintext token is returned once. Store it in a secrets manager or protected environment variable.