Skip to main content
POST
Create a quote

Authorizations

Authorization
string
header
required

Create a key under Settings → API Keys and send it as Authorization: Bearer amd_live_…. See https://docs.anythingmd.com/authentication.

Headers

Idempotency-Key
string

If reused within the retention window, replay the original result instead of a second mutation

Minimum string length: 1

Body

application/json
operation
enum<string>
default:convert
required

Work to price

Available options:
convert
capabilityVersion
string
default:1
required

Capability version the quote is pinned to

Minimum string length: 1
source
object
required

Input the quote should estimate

idempotencyKey
string

If the same key is reused within the window, return the original quote

Minimum string length: 1

Response

Existing quote returned for a replayed idempotency key

id
string
required

Quote id

Minimum string length: 1
operation
enum<string>
required
Available options:
convert
capabilityVersion
string
required

Pinned version of this capability. Quotes, receipts, rate cards, and Skills key off operation + version.

Minimum string length: 1
estimatedUsage
object
required

Estimated natural units; not a bill

estimatedCredits
number
required

Expected credits if work matches the estimate

Required range: x >= 0
maximumCredits
number
required

Credits that will be reserved when the job starts; the workspace needs at least this many

Required range: x >= 0
priceVersion
string
required

Rate-card version this quote is pinned to

Minimum string length: 1
expiresAt
string<date-time>
required

ISO-8601 quote expiration

Pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
createdAt
string<date-time>
required
Pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$