CAD
Convert a PDF to DXF/DWG and get a time-limited download link (or the price)
Converts (up to ~3 minutes for large sets; cached afterwards) and returns status "ready" with a 60-minute download link, or status "purchase_required" with the price when the file is the $2 cad_dwg purchase (DWG, or any file over 50 MB, on a free account). Without pay nothing is charged or created. pay: "credits" pays from the user's credit balance (paying customers) and returns the file; pay: "checkout" returns a Stripe checkout_url the user completes in their browser. Only send pay after the user has agreed to the price.
post/documents/{document_id}/cad-files
Request
- Base URL: https://api.aginera.ai/partner/v1
- URL: https://api.aginera.ai/partner/v1/documents/{document_id}/cad-files
- 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
Request body
Response
OK
Example response
{
"document_id": "doc_4kR9sT2vWx7yZa1bCd3eFg"
}Changes
No recorded changes to this operation across all 1 revision of this API.