Akioudai Safety API
Comprehensive reference documentation for the Akioudai Safety API, including endpoints, parameters, and examples.
API Base URL
https://api.akioudai.ai
https://api.staging.akioudai.ai
Authentication
The Akioudai Safety API uses token-based authentication. All API requests must include an authentication token in the header.
Obtaining API Credentials
To obtain API credentials (API key and secret), you need to register for an Akioudai account and create an API key in the dashboard.
- Sign up or log in to your Akioudai account
- Navigate to API Settings in the dashboard
- Click "Create API Key" and provide a name for your key
- Save the API key and secret that are generated (the secret will only be shown once)
Using Authentication
To use the API, you need to:
- Generate an authentication token using your API key and secret
- Include the token in the Authorization header of all subsequent requests
Example: Obtaining a Token
curl -X POST https://api.akioudai.ai/v1/auth/token \ -H "Content-Type: application/json" \ -d '{ "api_key": "your_api_key", "api_secret": "your_api_secret" }' # Response { "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...", "expires_at": "2023-12-01T12:00:00Z" }
Example: Using the Token
curl -X GET https://api.akioudai.ai/v1/compliance/frameworks \ -H "Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
Authentication
Generate an authentication token
Parameters
Name | Type | Required | Description |
---|---|---|---|
api_key | string | Yes | Your API key |
api_secret | string | Yes | Your API secret |
Returns
Authentication token for use in subsequent requests
Rate Limits
100 requests per minute
Example
curl -X POST https://api.akioudai.ai/v1/auth/token \ -H "Content-Type: application/json" \ -d '{ "api_key": "your_api_key", "api_secret": "your_api_secret" }'
Revoke an authentication token
Parameters
Name | Type | Required | Description |
---|---|---|---|
token | string | Yes | The token to revoke |
Returns
Confirmation of token revocation
Rate Limits
100 requests per minute
Example
curl -X DELETE https://api.akioudai.ai/v1/auth/token \ -H "Authorization: Bearer your_token"
AI Safety Analysis
Analyze text content for safety concerns
Parameters
Name | Type | Required | Description |
---|---|---|---|
content | string | Yes | Text content to analyze |
categories | array | No | Safety categories to check (defaults to all) |
threshold | number | No | Sensitivity threshold (0-1, default 0.7) |
Returns
Safety analysis results with category scores and identified concerns
Rate Limits
500 requests per minute
Example
curl -X POST https://api.akioudai.ai/v1/analysis/safety/text \ -H "Content-Type: application/json" \ -H "Authorization: Bearer your_token" \ -d '{ "content": "Text content to analyze for safety", "categories": ["toxicity", "bias", "harassment"], "threshold": 0.7 }'
Analyze AI model for safety properties
Parameters
Name | Type | Required | Description |
---|---|---|---|
model_url | string | Yes | URL to the model or model identifier |
test_suite | string | No | Test suite to use for analysis (default: comprehensive) |
categories | array | No | Safety categories to check |
Returns
Comprehensive model safety analysis with risk scores and recommendations
Rate Limits
50 requests per hour
Example
curl -X POST https://api.akioudai.ai/v1/analysis/safety/model \ -H "Content-Type: application/json" \ -H "Authorization: Bearer your_token" \ -d '{ "model_url": "https://example.com/my-model.h5", "test_suite": "comprehensive", "categories": ["bias", "robustness", "toxicity"] }'
AI Alignment
Define alignment objectives for AI systems
Parameters
Name | Type | Required | Description |
---|---|---|---|
objectives | array | Yes | List of alignment objectives |
context | string | No | Usage context for the AI system |
domain | string | No | Domain of application |
Returns
Processed alignment objectives with implementation guidance
Rate Limits
100 requests per hour
Example
curl -X POST https://api.akioudai.ai/v1/alignment/objectives \ -H "Content-Type: application/json" \ -H "Authorization: Bearer your_token" \ -d '{ "objectives": ["truthfulness", "safety", "helpfulness"], "context": "Customer support chatbot", "domain": "e-commerce" }'
Evaluate AI system alignment with defined objectives
Parameters
Name | Type | Required | Description |
---|---|---|---|
model_url | string | Yes | URL to the model or model identifier |
objectives | array | Yes | Alignment objectives to evaluate against |
test_cases | array | No | Custom test cases for evaluation |
Returns
Alignment evaluation results with scores and improvement recommendations
Rate Limits
50 requests per hour
Example
curl -X POST https://api.akioudai.ai/v1/alignment/evaluate \ -H "Content-Type: application/json" \ -H "Authorization: Bearer your_token" \ -d '{ "model_url": "https://example.com/my-model.h5", "objectives": ["truthfulness", "safety", "helpfulness"], "test_cases": [ { "input": "Tell me about your capabilities", "expected_properties": ["honest", "safe"] } ] }'
Runtime Monitoring
Create a monitoring session for an AI system
Parameters
Name | Type | Required | Description |
---|---|---|---|
system_id | string | Yes | Identifier for the AI system |
monitoring_config | object | No | Monitoring configuration options |
alert_channels | array | No | Channels for alerts (email, webhook, etc.) |
Returns
Monitoring session details with session ID and configuration
Rate Limits
100 requests per hour
Example
curl -X POST https://api.akioudai.ai/v1/monitoring/session \ -H "Content-Type: application/json" \ -H "Authorization: Bearer your_token" \ -d '{ "system_id": "my-ai-system-123", "monitoring_config": { "metrics": ["drift", "performance", "safety"], "interval": "5m" }, "alert_channels": [ { "type": "email", "destination": "alerts@example.com" } ] }'
Log a monitoring event for an AI system
Parameters
Name | Type | Required | Description |
---|---|---|---|
session_id | string | Yes | Monitoring session ID |
event_type | string | Yes | Type of event (inference, feedback, etc.) |
event_data | object | Yes | Event data payload |
Returns
Confirmation of event logging with any triggered alerts
Rate Limits
1000 requests per minute
Example
curl -X POST https://api.akioudai.ai/v1/monitoring/event \ -H "Content-Type: application/json" \ -H "Authorization: Bearer your_token" \ -d '{ "session_id": "mon-session-456", "event_type": "inference", "event_data": { "input": "User query text", "output": "Model response text", "confidence": 0.92, "latency": 120 } }'
Retrieve monitoring metrics for an AI system
Parameters
Name | Type | Required | Description |
---|---|---|---|
session_id | string | Yes | Monitoring session ID |
metrics | array | No | Specific metrics to retrieve |
time_range | string | No | Time range for metrics (e.g., "1h", "24h", "7d") |
Returns
Requested metrics with timestamps and values
Rate Limits
300 requests per minute
Example
curl -X GET "https://api.akioudai.ai/v1/monitoring/metrics?session_id=mon-session-456&metrics=drift,performance&time_range=24h" \ -H "Authorization: Bearer your_token"
Compliance
Perform a compliance assessment for an AI system
Parameters
Name | Type | Required | Description |
---|---|---|---|
system_id | string | Yes | Identifier for the AI system |
frameworks | array | Yes | Compliance frameworks to assess against |
system_metadata | object | No | Additional system metadata for assessment |
Returns
Compliance assessment results with scores, gaps, and recommendations
Rate Limits
50 requests per hour
Example
curl -X POST https://api.akioudai.ai/v1/compliance/assessment \ -H "Content-Type: application/json" \ -H "Authorization: Bearer your_token" \ -d '{ "system_id": "my-ai-system-123", "frameworks": ["eu_ai_act", "iso_42001", "nist_rmf"], "system_metadata": { "description": "Customer support assistant", "domain": "financial_services", "capabilities": ["text_generation", "recommendation"], "data_types": ["customer_data", "transaction_history"] } }'
Retrieve available compliance frameworks
Parameters
Name | Type | Required | Description |
---|---|---|---|
region | string | No | Filter frameworks by geographic region |
domain | string | No | Filter frameworks by domain |
Returns
List of available compliance frameworks with details
Rate Limits
300 requests per minute
Example
curl -X GET "https://api.akioudai.ai/v1/compliance/frameworks?region=eu&domain=healthcare" \ -H "Authorization: Bearer your_token"
Generate compliance documentation for an AI system
Parameters
Name | Type | Required | Description |
---|---|---|---|
assessment_id | string | Yes | Compliance assessment ID |
document_type | string | Yes | Type of documentation to generate |
format | string | No | Output format (pdf, docx, html) |
Returns
Generated compliance documentation in the requested format
Rate Limits
50 requests per hour
Example
curl -X POST https://api.akioudai.ai/v1/compliance/documentation \ -H "Content-Type: application/json" \ -H "Authorization: Bearer your_token" \ -d '{ "assessment_id": "assess-789", "document_type": "dpia", "format": "pdf" }'
Error Codes
The Akioudai Safety API uses standard HTTP status codes to indicate the success or failure of an API request. In addition, the response body will contain more detailed information about the error.
Code | Message | Description |
---|---|---|
400 | Bad Request | The request was invalid or cannot be otherwise served. |
401 | Unauthorized | Authentication credentials were missing or incorrect. |
403 | Forbidden | The request is understood, but it has been refused or access is not allowed. |
404 | Not Found | The requested resource could not be found. |
405 | Method Not Allowed | The request method is not supported for the requested resource. |
429 | Too Many Requests | Request rate limit exceeded. Retry after the specified time. |
500 | Internal Server Error | The server encountered an unexpected condition. |
503 | Service Unavailable | The server is currently unable to handle the request due to temporary overloading or maintenance. |
Error Response Format
{ "error": { "code": 400, "message": "Bad Request", "details": "Invalid parameter: threshold must be between 0 and 1", "request_id": "req_12345abcde" } }
Rate Limiting
The Akioudai Safety API implements rate limiting to ensure fair usage and system stability. Rate limits vary by endpoint and API plan.
Rate Limit Headers
All API responses include headers that provide information about your current rate limit status:
Header | Description |
---|---|
X-RateLimit-Limit | Maximum number of requests allowed in the current time window |
X-RateLimit-Remaining | Number of requests remaining in the current time window |
X-RateLimit-Reset | Time in seconds until the rate limit window resets |
Rate Limit Tiers
Rate limits vary based on your API plan:
Plan | Standard API Limits | Intensive API Limits |
---|---|---|
Developer | 100 requests/minute | 10 requests/hour |
Professional | 500 requests/minute | 50 requests/hour |
Enterprise | 1,000+ requests/minute | 100+ requests/hour |
Handling Rate Limits
When you exceed your rate limit, the API will return a 429 Too Many Requests response. Implement exponential backoff with jitter for retries to handle rate limiting gracefully.
API Versioning
The Akioudai Safety API uses versioned endpoints to ensure backward compatibility as we evolve the API.
Version Format
API versions are specified in the URL path, following the format /v{version_number}
. For example, /v1/auth/token
refers to version 1 of the token endpoint.
Versioning Policy
- We maintain backward compatibility within a major version.
- Breaking changes are introduced in new major versions.
- We provide at least 6 months notice before deprecating an API version.
- Minor enhancements and bug fixes do not increment the API version.
Current Versions
Version | Status | End-of-Life Date |
---|---|---|
v1 | Current | N/A |
v0 (Beta) | Deprecated | 2023-12-31 |
SDK Libraries
We provide official SDK libraries in several programming languages to simplify integration with the Akioudai Safety API.
SDK Benefits
- Simplified authentication handling
- Type-safe request and response objects
- Automatic rate limit handling with backoff
- Comprehensive error handling
- Higher-level abstractions for common operations
Additional Resources
API Postman Collection
Download our Postman collection to quickly test and explore the Akioudai Safety API endpoints.
Download collectionSample Applications
Explore example applications that demonstrate integration with the Akioudai Safety API.
View examplesNeed help with API integration?
Contact our developers