All API requests to Osmosis require authentication. Your API key serves as both your authentication token and tenant identifier.
Getting an API Key
Receive Credentials
Once approved, you’ll receive your unique API key via email.
Test Access
Verify your API key works by making a test call to any endpoint.
Using Your API Key
Include your API key in all requests to the Osmosis API using the x-api-key header:
Tenant ID
The tenant_id field in request bodies corresponds to a unique recommendation collection, enabling sub-tenancy isolation for different agentic workflows. This ensures proper data isolation and security between different agent instances and use cases.
Example request body structure:
# Basic authentication example
curl -X POST https://osmosis.gulp.dev/any_endpoint \
-H "Content-Type: application/json" \
-H "x-api-key: your-api-key" \
-d '{
"tenant_id": "your-api-key"
}'
Error Handling
{
"error": "invalid_api_key",
"message": "The provided API key is invalid or has been revoked"
}
Next Steps