API reference Connections
Draft the mandate that approves a request
POST/v1/connections/{code}/draft
The unsigned mandate for the limits the user chose, which may only be lower than or equal to what the agent asked. It names the asking agent's operator. Sign it and store it with POST /v1/mandates, passing connection, to approve.
Path parameters
codestringRequired
Headers
Content-Typeapplication/jsonRequiredidempotency-keystringRequiredkeelson-devicestringIdempotency-KeystringRequired- 1 to 255 characters. A retry with the same key returns the first answer.
Request body
application/json
limitsobjectRequiredcredentialIdstring
Responses
- 200The draft mandate and its card
- 401Not signed in
- 403The passkey is not the user's
- 404No open request with this code
- 409The user has no passkey
- 422A limit is above what the agent asked (
limits-raised;fieldsnames it) - 503The operator's agent key or bond is not set
200 response
mandateDraftobjectRequiredcardobjectRequiredambiguousarray of stringRequiredcheckobjectRequired