Skip to content

API reference

Schema suggestions

Let Anyrow suggest a table's columns from a sample document.

Suggest schema from text or file (multipart)

POST/v1/projects/{project_id}/suggest-schema

Requiresextract:write

Path parameters

  • project_idstringRequired

Request body

multipart/form-dataapplication/x-www-form-urlencoded

  • filestringoptional
  • textstringoptional

    Up to 1000000 characters.

Returns

200application/json

  • columnsarray of objectsRequired
  • confidencenumberRequired
  • instructionstringoptional

Errors

  • 404not_found
  • 500captcha_unavailableextraction_failedinternal_server_error
Errors every endpoint can return
Requestbash
curl -X POST 'https://api.anyrow.ai/v1/projects/{project_id}/suggest-schema' \  -H 'Authorization: ApiKey {your_api_key}' \  -F 'file=@./document.pdf' \  -F 'text=string'
Responsejson
{  "columns": [    {      "description": "string",      "name": "string",      "type": "string"    }  ],  "confidence": 0,  "instruction": "string"}