Open AI Compatible
Lightning Rod API key (sk_…) sent as a Bearer token. Obtain one via POST /v1/mpp/topup (agents) or the dashboard (humans).
Successful Response
fileprocessedPossible values: Validation Error
POST /v1/files HTTP/1.1
Host: api.lightningrod.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: multipart/form-data
Accept: */*
Content-Length: 90
{
"file": "text",
"purpose": "text",
"expires_after[anchor]": "text",
"expires_after[seconds]": 1
}{
"id": "text",
"bytes": 1,
"created_at": 1,
"filename": "text",
"object": "file",
"purpose": "batch",
"status": "processed",
"expires_at": 1,
"status_details": "text"
}Lightning Rod API key (sk_…) sent as a Bearer token. Obtain one via POST /v1/mpp/topup (agents) or the dashboard (humans).
File content
Validation Error
GET /v1/files/{file_id}/content HTTP/1.1
Host: api.lightningrod.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
No content
Lightning Rod API key (sk_…) sent as a Bearer token. Obtain one via POST /v1/mpp/topup (agents) or the dashboard (humans).
Successful Response
fileprocessedPossible values: Validation Error
GET /v1/files/{file_id} HTTP/1.1
Host: api.lightningrod.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"id": "text",
"bytes": 1,
"created_at": 1,
"filename": "text",
"object": "file",
"purpose": "batch",
"status": "processed",
"expires_at": 1,
"status_details": "text"
}Lightning Rod API key (sk_…) sent as a Bearer token. Obtain one via POST /v1/mpp/topup (agents) or the dashboard (humans).
Successful Response
filetrueValidation Error
DELETE /v1/files/{file_id} HTTP/1.1
Host: api.lightningrod.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"id": "text",
"object": "file",
"deleted": true
}Lightning Rod API key (sk_…) sent as a Bearer token. Obtain one via POST /v1/mpp/topup (agents) or the dashboard (humans).
20Successful Response
listValidation Error
GET /v1/batches HTTP/1.1
Host: api.lightningrod.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"object": "list",
"data": [
{
"id": "text",
"object": "batch",
"endpoint": "text",
"errors": {
"object": "list",
"data": [
{
"code": "text",
"line": 1,
"message": "text",
"param": "text"
}
]
},
"input_file_id": "text",
"completion_window": "24h",
"status": "validating",
"output_file_id": "text",
"error_file_id": "text",
"created_at": 1,
"in_progress_at": 1,
"expires_at": 1,
"finalizing_at": 1,
"completed_at": 1,
"failed_at": 1,
"expired_at": 1,
"cancelling_at": 1,
"cancelled_at": 1,
"request_counts": {
"total": 0,
"completed": 0,
"failed": 0
},
"metadata": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"model": "text",
"usage": {
"input_tokens": 1,
"input_tokens_details": {
"cached_tokens": 0
},
"output_tokens": 1,
"output_tokens_details": {
"reasoning_tokens": 0
},
"total_tokens": 1
}
}
],
"first_id": "text",
"last_id": "text",
"has_more": true
}Lightning Rod API key (sk_…) sent as a Bearer token. Obtain one via POST /v1/mpp/topup (agents) or the dashboard (humans).
Successful Response
batch24hValidation Error
POST /v1/batches HTTP/1.1
Host: api.lightningrod.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 168
{
"input_file_id": "text",
"endpoint": "text",
"completion_window": "text",
"metadata": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"output_expires_after": {
"anchor": "text",
"seconds": 1
}
}{
"id": "text",
"object": "batch",
"endpoint": "text",
"errors": {
"object": "list",
"data": [
{
"code": "text",
"line": 1,
"message": "text",
"param": "text"
}
]
},
"input_file_id": "text",
"completion_window": "24h",
"status": "validating",
"output_file_id": "text",
"error_file_id": "text",
"created_at": 1,
"in_progress_at": 1,
"expires_at": 1,
"finalizing_at": 1,
"completed_at": 1,
"failed_at": 1,
"expired_at": 1,
"cancelling_at": 1,
"cancelled_at": 1,
"request_counts": {
"total": 0,
"completed": 0,
"failed": 0
},
"metadata": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"model": "text",
"usage": {
"input_tokens": 1,
"input_tokens_details": {
"cached_tokens": 0
},
"output_tokens": 1,
"output_tokens_details": {
"reasoning_tokens": 0
},
"total_tokens": 1
}
}Lightning Rod API key (sk_…) sent as a Bearer token. Obtain one via POST /v1/mpp/topup (agents) or the dashboard (humans).
Successful Response
batch24hValidation Error
GET /v1/batches/{batch_id} HTTP/1.1
Host: api.lightningrod.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"id": "text",
"object": "batch",
"endpoint": "text",
"errors": {
"object": "list",
"data": [
{
"code": "text",
"line": 1,
"message": "text",
"param": "text"
}
]
},
"input_file_id": "text",
"completion_window": "24h",
"status": "validating",
"output_file_id": "text",
"error_file_id": "text",
"created_at": 1,
"in_progress_at": 1,
"expires_at": 1,
"finalizing_at": 1,
"completed_at": 1,
"failed_at": 1,
"expired_at": 1,
"cancelling_at": 1,
"cancelled_at": 1,
"request_counts": {
"total": 0,
"completed": 0,
"failed": 0
},
"metadata": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"model": "text",
"usage": {
"input_tokens": 1,
"input_tokens_details": {
"cached_tokens": 0
},
"output_tokens": 1,
"output_tokens_details": {
"reasoning_tokens": 0
},
"total_tokens": 1
}
}Lightning Rod API key (sk_…) sent as a Bearer token. Obtain one via POST /v1/mpp/topup (agents) or the dashboard (humans).
Successful Response
batch24hValidation Error
POST /v1/batches/{batch_id}/cancel HTTP/1.1
Host: api.lightningrod.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"id": "text",
"object": "batch",
"endpoint": "text",
"errors": {
"object": "list",
"data": [
{
"code": "text",
"line": 1,
"message": "text",
"param": "text"
}
]
},
"input_file_id": "text",
"completion_window": "24h",
"status": "validating",
"output_file_id": "text",
"error_file_id": "text",
"created_at": 1,
"in_progress_at": 1,
"expires_at": 1,
"finalizing_at": 1,
"completed_at": 1,
"failed_at": 1,
"expired_at": 1,
"cancelling_at": 1,
"cancelled_at": 1,
"request_counts": {
"total": 0,
"completed": 0,
"failed": 0
},
"metadata": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"model": "text",
"usage": {
"input_tokens": 1,
"input_tokens_details": {
"cached_tokens": 0
},
"output_tokens": 1,
"output_tokens_details": {
"reasoning_tokens": 0
},
"total_tokens": 1
}
}Last updated
Was this helpful?
