CAD

Can this PDF be converted to CAD, and what does it cost this user?

Checks a ready PDF document (vector linework, or a scan that traces) and returns the website's own pricing for this user: DXF of every sheet is free (watermarked on free accounts); a clean DWG is a one-time $2 purchase per document (or 40 credits for paying customers); files over 50 MB are part of that purchase; paid plans are not charged. Converts and charges nothing. Requires a delegated (user) token — a service credential gets consent_required.

get/documents/{document_id}/cad

Request

  • Base URL: https://api.aginera.ai/partner/v1
  • URL: https://api.aginera.ai/partner/v1/documents/{document_id}/cad
  • Auth: OAuth 2 (authorization code, authorization URL https://auth.aginera.ai/oauth/authorize, token URL https://auth.aginera.ai/oauth/token; client credentials, token URL https://login.microsoftonline.com/65f567a9-6e6a-4f81-863c-aea4ece1f8eb/oauth2/v2.0/token, scopes: cad:convert)

Path parameters

document_idstring required
Example:doc_4kR9sT2vWx7yZa1bCd3eFg

Response

OK

document_idstring required
filenamestring required
convertibleboolean required

Whether Aginera can turn this PDF into CAD (vector linework, or a scan that traced to linework).

reasonstring nullable required

Why not, when convertible is false: not_pdf, raster_or_unreadable, no_vector_linework.

page_countinteger nullable required
scan_tracedboolean required
access'purchased' | 'unlocked' | 'free' required

purchased = the $2 CAD file was bought for this document; unlocked = a paid plan (no gate); free = free tier (DXF watermarked, DWG needs the purchase).

paidboolean required

The cad_dwg purchase exists for this document.

next_stepstring required

Example response

{
  "document_id": "doc_4kR9sT2vWx7yZa1bCd3eFg"
}

Changes

No recorded changes to this operation across all 1 revision of this API.