Skip to main content
POST
Create an API

Authorizations

X-API-Key
string
header
required

Headers

Idempotency-Key
string

Repeating a request with the same key returns the same build without starting or charging a second one. The same key with a different request returns 409 idempotency_key_reused.

Required string length: 1 - 255

Body

application/json
url
string<uri>
required
instructions
string | null
wait_for_completion
boolean
default:false
timeout_ms
integer
Required range: 1000 <= x <= 300000

Response

API creation result.

api
object
required
waited
boolean
required
timed_out
boolean
required