Proxy

Create temporary credential

Changed on

Create a temporary credential which can access the proxy for a limited time. The temporary credential will be allowed to make requests on behalf of the Braintrust API key (or model provider API key) provided in the Authorization header. See docs for code examples.

post/v1/proxy/credentials

Request

  • Base URL
    https://api.braintrust.dev
  • Auth
    • HTTP bearer
    • or none

Request body

modelstring nullable

Granted model name. Null/undefined to grant usage of all models.

ttl_secondsnumber

TTL of the temporary credential. 10 minutes by default.

Response

Successfully created temporary credential

keystring required

Changes