Skip to content

GET/POST · Bearer

GET/POST /api/v1/inboxes/:id/credentials

Summary

List or store credentials on one inbox. type is totp, secret, or password. totp accepts otpauth_uri or a base32 secret, and optional digits (6 to 8), period (15 to 120), and algorithm (SHA1, SHA256, or SHA512). secret accepts value. password accepts origin, username, and password. label or name is optional. The response does not include the seed, secret, or password. At most 100 per inbox (HTTP 409 credential_limit). GET requires credentials:read. POST requires credentials:write. A full-access key can call both. HTTP 503 vault_unavailable when COOPER_VAULT_KEY is unset. A locked account is HTTP 403 account_locked. Guide: /guides/let-your-agent-pass-2fa-sign-ups.

Request

{
  "type": "totp",
  "label": "Example",
  "secret": "JBSWY3DPEHPK3PXP"
}

Response

The OpenAPI document does not declare a JSON response schema for this call. The summary is the contract.

Errors

  • HTTP 409 credential_limit
  • HTTP 503 vault_unavailable
  • HTTP 403 account_locked

Idempotency

This route does not document Idempotency-Key or client_id.