Vezmo App

Get started · Authentication

Create token

Exchanges your API key and secret for an access token. Send the token as Authorization: Bearer <token> on every other API call. The request has no body.

The access token is data.accessToken.token and data.accessToken.expiresIn says how many seconds it lasts. A key whose ID starts vzm_live_ or vzm_test_ gets a 15-minute token and no refresh token: call Create token again when it expires.

An older key (vzm_ and 16 characters) still gets a 30-minute token and a 7-day refresh token in data.accessToken.refreshToken, for Refresh token. Roll it in the dashboard to move it to the new format.

A key with allowed IP addresses gets a token only from one of them; from anywhere else Create token returns 403 with the code ip_not_allowed. See IP limits.

This endpoint allows 5 requests a minute from one IP address; more return 429. Keep the token and reuse it until it expires instead of creating one per call. A wrong key or secret returns 401.

Headers

x-api-key string Required

Your key ID, e.g. vzm_test_rq_ followed by 16 characters (older keys: vzm_ and 16 characters).

x-api-secret string Required

The secret shown once when you created the key.

Call this from your server only. Never put your API secret in a browser or an app, and never commit it to version control: keep it in an environment variable.