Authorizations
Most Braintrust endpoints are authenticated by providing your API key as a header Authorization: Bearer [api_key] to your HTTP request. You can create an API key in the Braintrust organization settings page.
Body
Any desired information about the new service_token object
Name of the service token. Does not have to be unique
The service account ID this service token should belong to.
For nearly all users, this parameter should be unnecessary. But in the rare case that your API key belongs to multiple organizations, you may specify the name of the organization the Service token belongs in.
Response
Returns an object containing the raw service token. This is the only time the raw API key will be exposed
Unique identifier for the service token
Name of the service token
The raw service token. It will only be exposed this one time
Date of service token creation
Unique identifier for the service token
The service account email (not routable)
The service account name
Unique identifier for the organization