Service token management API endpoints
We've added new API endpoints for managing service tokens through the API. You can now list, view, create, and delete service tokens without using the dashboard or CLI.
/v1/organizations/{organization}/service-tokens— List all service tokens in your organization (GET)/v1/organizations/{organization}/service-tokens/{id}— Get details about a specific service token (GET)/v1/organizations/{organization}/service-tokens— Create a new service token (POST)/v1/organizations/{organization}/service-tokens/{id}— Delete a service token (DELETE)
To use these endpoints with a service token, you'll need the read_service_tokens permission for read operations, write_service_tokens for creating, and delete_service_tokens for deletions.