Skip to content

Authentication

Vysion uses API keys to allow access to the API. All API requests must include a valid API key in the request headers.

Each request must contain the x-api-key header:

Terminal window
curl "https://api.vysion.ai/api/v2/document/search" \
--header 'Accept: application/json' \
--header 'x-api-key: YOUR_API_KEY'

To obtain an API key:

  1. Contact us to request developer access
  2. Provide your use case and organization details
  3. Receive your unique API key via email

The API key must be included in all requests using this exact header format:

x-api-key: YOUR_API_KEY

If authentication fails, you’ll receive one of these error responses:

{
"error": "API key required",
"status": 401
}
{
"error": "Invalid API key",
"status": 401
}
{
"error": "Rate limit exceeded",
"status": 429,
"retry_after": 60
}
  • Keep your API key secure: Never expose it in client-side code or public repositories
  • Use environment variables: Store your API key in environment variables, not hardcoded strings
  • Monitor usage: Track your API usage to avoid hitting rate limits
  • Rotate keys regularly: Contact us to rotate your API keys periodically for security

API requests are subject to rate limiting. See our Rate Limiting guide for more details on limits and best practices.