Save a native document without AI charges

post/diagrams

Request

  • Base URL: https://flowchartai.org/api/v1
  • URL: https://flowchartai.org/api/v1/diagrams
  • Auth: one of:
    • HTTP bearer
    • API key in header X-API-Key

Headers

Idempotency-Keystring required

8–120 ASCII letters, digits, underscore, period, colon or hyphen. Reuse the same key and exact request after a timeout. Keys are scoped to the owner, across their credentials.

Request body

titlestring required
expected_versionstring

Response

Successful response

idstring uuid required
state'running' | 'prepared' | 'succeeded' | 'failed' required
operation'generate' | 'edit' | 'save' required
diagram_idstring required
budget_creditsinteger required

Accepted task estimate, retained after settlement.

reserved_creditsinteger required
charged_creditsinteger required
created_atstring date-time
updated_atstring date-time

Changes

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