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
- Open the Visito dashboard.
- Go to Build → API Keys.
- Click Create new API Key.
- Choose a clear name, such as
PMS booking sync or CRM automation.
- Select only the scopes required by your integration.
- Copy the key immediately and store it securely.
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.