🎁
Founder Deals
Get 20% bonus credits and lifetime API discounts.
View Deals
P
Product Hunt
Leave us a review on Product Hunt.
Visit on Product Hunt

Doxtract API Endpoints

Get Templates

Endpoint
GEThttps://api.soceton.com/doxtract/api/templates
Parameters
NameTypeLocationDescription
skipintegerqueryNumber of records to skip.
Default: 0
Minimum: 0
limitintegerqueryMaximum number of records to return.
Default: 10
Minimum: 1
Maximum: 100
x-api-keystring | nullheaderAPI key.
x-api-secretstring | nullheaderAPI secret.
Example Request
curl -X GET "https://api.soceton.com/doxtract/api/templates?skip=0&limit=10" \
    -H "x-api-key: YOUR_API_KEY" \
    -H "x-api-secret: YOUR_API_SECRET"
Responses

200 - Successful Response

{
    "total": int,
    "skip": int,
    "limit": int,
    "data": []
}

422 - Validation Error

{
  "detail": [
    {
      "loc": ["string", 0],
      "msg": "string",
      "type": "string"
    }
  ]
}

Extract Data (Read)

Endpoint
POSThttps://api.soceton.com/doxtract/api/read
Headers
NameTypeLocationDescription
x-api-keystring | nullheaderAPI key for authentication
x-api-secretstring | nullheaderAPI secret for authentication
Request Body
multipart/form-data
FieldTypeRequiredDescription
filesarray<string>RequiredFiles to process
datastringRequiredJSON configuration for extraction
Example Request
curl -X POST "https://api.soceton.com/doxtract/api/read" \
  -H "x-api-key: YOUR_API_KEY" \
  -H "x-api-secret: YOUR_API_SECRET" \
  -F "files=@sample.pdf" \
  -F 'data={"template_id":"123"}'
Responses

200 - Success

{
    "success": True, 
    "job_id": "string",
    "result": {}
}

422 - Validation Error

{
  "detail": [
    {
      "loc": ["string", 0],
      "msg": "string",
      "type": "string"
    }
  ]
}

Get Job Status

Endpoint
GEThttps://api.soceton.com/doxtract/api/jobs/{job_id}
Parameters
NameTypeLocationDescription
job_idstringpathUnique job identifier
x-api-keystring | nullheaderAPI key for authentication
x-api-secretstring | nullheaderAPI secret for authentication
Example Request
curl -X GET "https://api.soceton.com/doxtract/api/jobs/JOB_ID" \
  -H "x-api-key: YOUR_API_KEY" \
  -H "x-api-secret: YOUR_API_SECRET"
Responses

200 - Successful Response

{
    "processed_pages": int,
    "total_pages": int,
    "status": string
}

422 - Validation Error

{
  "detail": [
    {
      "loc": ["string", 0],
      "msg": "string",
      "type": "string"
    }
  ]
}

Download Job Data

Endpoint
GEThttps://api.soceton.com/doxtract/api/download/{job_id}
Parameters
NameTypeLocationDescription
job_idstringpathUnique job identifier
x-api-keystring | nullheaderAPI key used for authentication
x-api-secretstring | nullheaderAPI secret used for authentication
Responses
200 - Successful Response
{
    "url": string  // download url (signed for 5 minutes)
}
422 - Validation Error
{
  "detail": [
    {
      "loc": ["string", 0],
      "msg": "string",
      "type": "string"
    }
  ]
}