Skip to content

List AI credentials

GET
/api/v1/ai/credentials
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.

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
Allowed values: claude codex
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
error
required

Error details.

object
code
required

Stable machine-readable code.

string
Allowed values: bad_request unauthorized forbidden not_found conflict name_conflict_case name_too_long push_endpoint_rejected too_many_requests internal service_unavailable
details
One of:

Optional field or operation details.

object
key
additional properties
string
message
required

Safe text for logs or a user-facing error message.

string
Example
{
"error": {
"code": "bad_request"
}
}
Media typeapplication/json

The standard API error response: { "error": { ... } }.

object
error
required

Error details.

object
code
required

Stable machine-readable code.

string
Allowed values: bad_request unauthorized forbidden not_found conflict name_conflict_case name_too_long push_endpoint_rejected too_many_requests internal service_unavailable
details
One of:

Optional field or operation details.

object
key
additional properties
string
message
required

Safe text for logs or a user-facing error message.

string
Example
{
"error": {
"code": "bad_request"
}
}