Get the tenant's AI credential status
GET
/api/v1/ai/credential
const url = 'https://app.avera.io/api/v1/ai/credential';const options = {method: 'GET'};
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://app.avera.io/api/v1/ai/credentialReturns only the key prefix and lifecycle timestamps: the key itself is write-only and never returned by any endpoint. configured=false is the normal first-run state, not an error.
Responses
Section titled “Responses”OK
Media type*/*
object
configured
required
boolean
provider
string | null
keyPrefix
string | null
createdAt
string | null format: date-time
rotatedAt
string | null format: date-time
lastValidatedAt
string | null format: date-time
lastUsedAt
string | null format: date-time