LlmProviderKey

Test a provider's dynamic token auth

Runs the token fetch once, backend-side, and reports the token lifetime. The token itself is never returned. Send provider_id to test the stored config, auth_config to test submitted values, or both to resolve secret sentinels against the stored config.

post/v1/private/llm-provider-key/auth-config/test

Request body

provider_idstring uuid

Test the stored auth config of this provider; also the sentinel-resolution target when auth_config is sent

Example request

{
  "auth_config": {
    "token_url": "https://developer.api.example.com/authentication/v1/token",
    "token_field": "access_token",
    "expires_field": "expires_in"
  }
}

Response

Token fetched

namestring
currentnumber double
previousnumber double

Changes

Changed in 1 of the 67 revisions of this API.1