Create Agency Client
POST /agency/clients
Create a client org under this agency.
Returns 201 with the new client (created: true). Send Idempotency-Key and/or external_ref: creates that share
either are serialized per agency (a concurrent one gets 409, retry shortly) and a repeat answers 200 with
created: false and the same client, so exactly one org exists per reference. With neither there is nothing to
deduplicate on. If the new org cannot be linked to the agency it is deleted again and the call answers 502.
The workspace is built in the background: provisioning is pending until it is ready.
Authorizations
Parameters
Header Parameters
Request Body required
Responses
201
Successful Response
object
object
Client org id (org_xxx). Send it as X-Target-Org-Id.
pending until the org’s workspace has been set up; targeting it answers 503 until then.
object
Whether there are more pages
Items per page
Current page number (1-indexed)
Total number of items
422
Validation Error