Agents

Verify a previously imported OpenCode credential against a user-selected model without asking the browser to receive or resubmit the secret.

post/settings/ai-providers/{provider_id}/credential/verify-saved

Request

  • Base URL: /api (relative, and the document was published on a file host, not at the API’s origin)
  • URL: /api/settings/ai-providers/{provider_id}/credential/verify-saved
  • Auth: HTTP bearer

Path parameters

provider_idstring required

AI provider ID

Request body

verification_modelstring required

OpenCode model in provider/model form, used to verify the saved secret.

Response

auth_typestring required
credential_verification_statusstring required
provider_idstring required
savedboolean required
verification_hintstring nullable

Changes

No recorded changes to this operation across all 50 revisions of this API.