API Reference & Integrations
Automate your data annotation and human-in-the-loop workflows by integrating Radiif directly into your ML training pipeline.
Base Endpoint
Documentation
Getting Started
Welcome to the Radiif developer portal. Our API enables technology partners, AI labs, and enterprise clients to connect directly to our Saudi expert annotation network. By using the API, you can programmatically request annotation work, deliver RLHF prompts, track tasks in real-time, and download finalized datasets directly into your machine learning pipelines.
Authentication
All API requests must contain your organization token in the Authorization header. You can obtain your API key from the developer settings page in your dashboard.
Create Task
Start a new annotation or RLHF preference task by sending a POST request to `/tasks`. Provide task guidelines, prompt lists, and language preferences.
Request Parameters
Example Request
curl -X POST https://api.radiif.com/v1/tasks \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"task_type": "rlhf_ranking",
"prompts": [
{
"prompt": "Explain the rules of PDPL in simple terms.",
"completions": ["Model response A...", "Model response B..."]
}
],
"guidelines": "Ensure safety, cultural alignment, and correctness."
}'
Get Results
Once experts submit evaluations, the tasks change status to `completed`. You can retrieve results using a GET request for a specific task.
Response Format
{
"task_id": "task_9281a82b",
"status": "completed",
"results": [
{
"prompt": "Explain PDPL rules in simple terms.",
"best_completion_index": 0,
"annotations": {
"rationale": "Completion A includes detailed local hosting requirements, while B lacks SA hosting details."
}
}
]
}
Webhooks
Configure a webhook URL under your dashboard developers section. Radiif will send a POST request with payload signatures whenever task groups complete processing, allowing your ML infrastructure to automatically pull dataset outputs and trigger retraining.