POST
/
api
/
v1
/
inference
/
all_calls
Get all inference requests
curl --request POST \
  --url https://api.optexity.com/api/v1/inference/all_calls \
  --header 'x-api-key: <api-key>'
{
  "success": true,
  "total_requests": 123,
  "requests": [
    {
      "success": true,
      "task_id": "<string>",
      "status": "running",
      "end_point": "<string>",
      "goal": "<string>",
      "created_at": "2023-11-07T05:31:56Z",
      "completed_at": "2023-11-07T05:31:56Z",
      "result": "<string>",
      "progress": 50,
      "error": "<string>"
    }
  ]
}

Get All Inference Requests

This endpoint retrieves all inference requests that have been made so far. It provides a comprehensive list of all tasks and their current statuses.

Request Headers

HeaderTypeRequiredDescription
x-api-keystringYesYour API key for authentication

Request Body

No request body is required for this endpoint.

Example Request

curl -X POST /api/v1/inference/all_calls \
  -H "x-api-key: YOUR_API_KEY" \
  -H "Content-Type: application/json"

Example Response

{
  "success": true,
  "total_requests": 15,
  "requests": [
    {
      "task_id": "task_123456789",
      "end_point": "https://api.example.com/process",
      "goal": "Analyze customer feedback sentiment",
      "status": "completed",
      "created_at": "2024-01-15T10:30:00Z",
      "completed_at": "2024-01-15T10:32:15Z",
      "result": "Positive sentiment detected"
    },
    {
      "task_id": "task_987654321",
      "end_point": "https://api.example.com/analyze",
      "goal": "Process document data",
      "status": "running",
      "created_at": "2024-01-15T11:00:00Z",
      "progress": 75
    }
  ]
}

Error Responses

401 Unauthorized
{
  "error": "Invalid API key"
}
500 Internal Server Error
{
  "error": "Failed to retrieve inference requests"
}

Authorizations

x-api-key
string
header
required

Response

200
application/json

All inference requests retrieved successfully

The response is of type object.