Agents

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

Changed on
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)
  • 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

    • info

      added the optional property provider/login_unavailable_reason to the response with the status

    • info

      added the required property provider/login_supported to the response with the status

    • info

      endpoint added