Developers

Book an ASAP appointment

Places the patient in a shared waiting room immediately. A practitioner credentialed in the given state will join when available: there is no guaranteed wait time.

POST/appointments/asap/

Places the patient in a shared waiting room immediately. A practitioner credentialed in the given state will join when available: there is no guaranteed wait time.

Authorization

HTTPBearer XDoctronicUserID
AuthorizationBearer <token>

In: header

X-Doctronic-User-ID<token>

Doctronic user ID returned as data.id by POST /users/. This value identifies the user in your organization scope; it is not an API token.

In: header

Header Parameters

Idempotency-Key?string

Unique key for safely retrying this mutation for 24 hours. Reuse the same key only with the same request payload.

Lengthlength <= 255

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/appointments/asap/" \  -H "Content-Type: application/json" \  -d '{    "chatId": "string",    "location": {      "state": "AK"    }  }'
{  "code": "success",  "message": "Request successful",  "data": {    "id": "string",    "createdAt": "2019-08-24T14:15:22Z",    "chatId": "string",    "status": "booked",    "durationMinutes": 0,    "location": {      "state": "AK"    },    "waitingRoomUrl": "https://doctronic.doxy.me/example?pid=dc_01K1EXAMPLE00000000000000&autocheckin=true"  }}