VocalDocscontracts 1.65.0

Read the state of the Organization's tool signing secret

GET /v1/tool-signing-secret

PropertyValue
Operationget_tool_signing_secret
GroupTools
Scopetools:read
Route classread
IdempotencyNo Idempotency-Key
AuditNot audited: A configuration read that never answers the secret.
Released in1.50.0
Phase 0 hostServed (the hosted api pins 1.65.0)

Answers whether a tool signing secret exists, its hint, when it was minted and last rotated, and until when the previous secret keeps signing (1.50.0). It never answers a secret: only the rotation does, once.

Request

Set VOCAL_API to the base URL of your API and VOCAL_API_KEY to an API key with the tools:read scope (Authentication and keys). Replace each placeholder, such as agt_... or <name>, with your own value.

curl "$VOCAL_API/v1/tool-signing-secret" \
  -H "Authorization: Bearer $VOCAL_API_KEY"

Responses

StatusContent typeShapeError codes
200application/jsonToolSigningSecretState
400application/jsonErrorEnvelopeinvalid_request
401application/jsonErrorEnvelopeunauthenticated
403application/jsonErrorEnvelopeforbidden
429application/jsonErrorEnveloperate_limited
500application/jsonErrorEnvelopeinternal_error

Fields of the 200 answer

The shape is ToolSigningSecretState.

FieldTypeRequiredDescription
created_atTimestamp or nullyesWhen the current secret was minted, by the api or a rotation; null when none exists.
existsbooleanyesWhether the Organization has a tool signing secret yet; the api mints the first when it first needs one (the first http Tool create, test or Call), so a new Organization has none.
object"tool_signing_secret"yes
previous_secret_expires_atTimestamp or nullyesWhen the previous secret stops signing, or null when none does.
previous_secret_hintstring or nullyesThe last four characters of the secret that keeps signing through the rotation window, or null when none does.
rotated_atTimestamp or nullyesWhen POST /v1/tool-signing-secret/rotate last rotated it; null when it was never rotated, so the current secret is the one the api minted and never showed.
secret_hintstring or nullyesThe last four characters of the current secret; null when none exists.