POST
/
extract
curl --request POST \
  --url https://dataextractorai.com/api/v1/extract \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "content": "<string>",
  "schema": {
    "type": "object",
    "properties": [
      {}
    ]
  },
  "webhook_url": "<string>",
  "metadata": {}
}'
{
  "request_id": "<string>",
  "credits_consumed": 123,
  "credits_type": "subscription",
  "status": "pending",
  "success": true,
  "request_data": {
    "schema": {
      "type": "<string>",
      "properties": {}
    },
    "content": "<string>",
    "webhook_url": "<string>"
  },
  "extracted_data": {},
  "created_at": "2023-11-07T05:31:56Z",
  "completed_at": "2023-11-07T05:31:56Z",
  "processing_time_ms": 2000,
  "webhook_url": "<string>",
  "metadata": {}
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Response

200 - application/json

OK

The response is of type object.