Classify drawings

Drawing classification

POST/v1/drawings/classify

Classifies every page of a drawing set — identifying drawing numbers, titles, drawing types (floor plan, elevation, schedule, etc.), CSI divisions, scope, and floor level. Returns a structured index grouped by drawing type. This is an async job — submit and poll.

Returns
A job to check202 Accepted
Usage
Document indexingper page read
Results in
A sheet indexresult.pages · result.by_drawing_type
Auth
Bearer tokenAuthorization header

How it runs

  1. Send a document_id
  2. Get a job_id
  3. Check your results or receive a webhook

Request

This endpoint requires a document_id. Upload your PDF first.

Auth via Authorization: Bearer <api_key> header. Body is JSON.

FieldDescription
document_idstring · UUIDRequiredID from POST /v1/documents. Must belong to this account and not be expired.
page_numbersarray of integersOptional1-based page list. Omit to classify all pages.
webhook_urlstring · URLOptionalURL to POST the completed job payload to. Delivered on developer, pro, and enterprise tiers only.
UsageClassification counts as document indexing on each page it reads (See pricing). Usage is recorded when the job is submitted.

Responses

The job is enqueued immediately. Poll GET /v1/jobs/{job_id} until status is complete or failed.

FieldDescription
job_idstring · UUIDUse this to poll for results.
statusstringAlways queued on this response.
poll_urlstringPath only — prepend https://api.anchorgrid.ai to build the full URL.

Usage & rate limits

Document indexing, per page read (See pricing). Typical time: ~2–3 min per 130 pages.

PlanWhen the allowance is used up
trialTrial allowance — 402 FREE_TIER_LIMIT_REACHED when used up, 402 TRIAL_ENDED once the trial is over.
developerMonthly allowance, then overage up to your overage limit — 402 OVERAGE_LIMIT_REACHED at the limit (429 QUOTA_EXCEEDED when the allowance is used up without overage billing).
enterpriseNo allowance check.

Errors

StatusWhat it means
404DOCUMENT_NOT_FOUNDdocument_id doesn’t exist or has expired.
402FREE_TIER_LIMIT_REACHEDTrial allowance used up — upgrade required.
402TRIAL_ENDEDThe trial has ended — upgrade or ask us to extend it.
402OVERAGE_LIMIT_REACHEDThe job would pass your overage limit for this billing period.
429QUOTA_EXCEEDEDMonthly allowance used up (no overage billing).

Searches these docs: guides, the basics and every endpoint.

Make your first requestPlayground walkthrough: upload, choose an analysis, run it
Connect your softwareYour application calls the REST API. Requires an API key
Connect your AI agentGive an agent a tool that calls the REST API
AuthenticationX-API-Key header, 401 errors, keeping keys safe
Detect doorsPOST /v1/drawings/detection/doorsDoor detection — Find the doors on the pages of an architectural drawing set.
Check your resultsGET /v1/jobs/{job_id}Get a job — See a job’s status and, once it’s complete, its results.