Skip to content

Authentication

The Veronese JSON API uses Bearer token authentication. All requests must include a valid API access token in the Authorization header.

  1. Go to Settings → API Access in your Veronese account.
  2. Click Generate new token.
  3. Copy the token — it is shown once and cannot be retrieved again.

You can also create a token via the API:

Terminal window
curl -X POST https://veronesebook.com/api_access_tokens.json \
-H "Authorization: Bearer YOUR_EXISTING_TOKEN" \
-H "Content-Type: application/json" \
-d '{"api_access_token": {"name": "My token"}}'

Include your token in every request:

Terminal window
curl https://veronesebook.com/dashboard.json \
-H "Authorization: Bearer YOUR_TOKEN"

All API responses use a consistent envelope.

Success:

{
"success": true
}

Error:

{
"success": false,
"error": {
"code": "unauthorized",
"message": "Invalid or expired token",
"details": {}
}
}
CodeHTTP statusMeaning
unauthorized401Missing or invalid token
forbidden403Valid token but insufficient permissions
not_found404Resource does not exist
unprocessable_entity422Validation failed
payment_required402Insufficient credit balance
  • Tokens do not expire automatically.
  • You can delete a token at any time from Settings or via the Tokens API.
  • A deleted token is immediately revoked — all requests using it return 401.