Create or replace service_token. If there is an existing service_token with the same name as the one specified in the request, will replace the existing service_token with the provided fields
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.
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. You can create a service account in the Braintrust organization settings page or using the modify organization membership endpoint
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.
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