List AI credentials
GET
/api/v1/ai/credentials
const url = 'https://example.com/api/v1/ai/credentials';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/api/v1/ai/credentials \ --header 'Authorization: Bearer <token>'List the caller’s AI provider credentials. The response shows each provider, whether a credential is set, and when it was last saved. It never includes the credential value. Route: /api/v1/ai/credentials. Inputs: . Safe reads can use bounded retries.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”Provider credential status; values are never returned
Media typeapplication/json
Array<object>
object
configured
required
True when an encrypted provider credential exists.
boolean
provider
required
Provider ID used by the turn API.
string
updated_ms
Unix time in milliseconds of the last Settings write.
integer | null format: int64
Example
[ { "provider": "claude" }]Media typeapplication/json
The standard API error response: { "error": { ... } }.
object
Example
{ "error": { "code": "bad_request" }}Media typeapplication/json
The standard API error response: { "error": { ... } }.
object
Example
{ "error": { "code": "bad_request" }}