Skip to main content
Visito’s developer API uses machine-to-machine credentials. Each key belongs to one tenant and includes explicit scopes that control what the integration can do.
M2M credentials are secrets. Store them only in server-side environment variables or a secrets manager. Never ship them in frontend, mobile, or embedded widget code.

Create an API Key

  1. Open the Visito dashboard.
  2. Go to Build → API Keys.
  3. Click Create new API Key.
  4. Choose a clear name, such as PMS booking sync or CRM automation.
  5. Select only the scopes required by your integration.
  6. Copy the key immediately and store it securely.

Authorization Header

Send the credential as a bearer token:

Scopes

Scopes are additive. A request succeeds only when the key has the scope required by that endpoint.

Example

Idempotency

Send endpoints require an Idempotency-Key header. Use a stable value from your system, such as a booking ID, payment ID, or CRM workflow run ID.
If your request is retried with the same key, Visito returns the original queued operation instead of creating a duplicate send.

Status Codes

Retry Policy

  • Retry GET requests after transient 429, 502, or 503 responses using exponential backoff and jitter.
  • Retry reply or template send requests only with the exact same body and the exact same Idempotency-Key.
  • Do not retry 400, 401, 403, 404, or 409 automatically.
  • If a 429 response includes error.details.retryAfterSeconds, wait at least that long.
Use a new idempotency key when the intended recipient, template, conversation, or message content changes.