{"openapi":"3.1.1","info":{"title":"TAS Courier Integration API","version":"0.1.0","description":"Development API for synthetic data only. This is not a production HIPAA-approved release. Service integration credentials are separate from recipient web/mobile identity. No SMS, email, APNs, FCM, WCTP transport, or outbound webhooks are active."},"servers":[{"url":"https://api.tascourier.com/api/v1","description":"Integration endpoint"},{"url":"https://sd.tascourier.com/api/v1","description":"Same API behind the recipient hostname"}],"security":[{"basicAuth":[]},{"bearerAuth":[]}],"tags":[{"name":"Getting started"},{"name":"Accounts"},{"name":"Recipients"},{"name":"Messages"},{"name":"Events"},{"name":"Branding"}],"paths":{"/health":{"get":{"operationId":"getHealth","tags":["Getting started"],"summary":"Read service health","security":[],"responses":{"200":{"description":"Non-sensitive health result.","content":{"application/json":{"schema":{"type":"object","properties":{"service":{"type":"string"},"status":{"const":"ok"},"version":{"type":"string"},"environment":{"const":"development"},"time":{"type":"string","format":"date-time"}}}}}},"500":{"description":"Structured error; see error.code. On 429 obey Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/me":{"get":{"operationId":"getIntegrationIdentity","tags":["Getting started"],"summary":"Read the authenticated integration identity and scopes","responses":{"200":{"description":"Identity of this API key.","content":{"application/json":{"schema":{"type":"object","required":["data","request_id"],"properties":{"data":{"type":"object","properties":{"key_id":{"type":"string","format":"uuid"},"service_id":{"type":"string","format":"uuid"},"service_name":{"type":"string"},"service_code":{"type":"string"},"scopes":{"type":"array","items":{"type":"string"}},"account_ids":{"type":"array","items":{"type":"string","format":"uuid"}},"sandbox":{"const":true},"expires_at":{"type":"string","format":"date-time"}}},"request_id":{"type":"string","format":"uuid"}}}}}},"400":{"description":"Structured error; see error.code. On 429 obey Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Structured error; see error.code. On 429 obey Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Structured error; see error.code. On 429 obey Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Structured error; see error.code. On 429 obey Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Structured error; see error.code. On 429 obey Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Structured error; see error.code. On 429 obey Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"Structured error; see error.code. On 429 obey Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Structured error; see error.code. On 429 obey Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Structured error; see error.code. On 429 obey Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Structured error; see error.code. On 429 obey Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/services/{service_id}/accounts":{"parameters":[{"name":"service_id","in":"path","required":true,"description":"Answering-service UUID returned by GET /me. Not the practice/account ID.","schema":{"type":"string","format":"uuid"}}],"get":{"operationId":"listAccounts","tags":["Accounts"],"summary":"List permitted accounts","description":"Requires accounts:read. Returns up to 500 accounts. Account-restricted keys only see their assigned accounts.","responses":{"200":{"description":"Accounts.","content":{"application/json":{"schema":{"type":"object","required":["data","request_id"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Account"}},"request_id":{"type":"string","format":"uuid"}}}}}},"400":{"description":"Structured error; see error.code. On 429 obey Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Structured error; see error.code. On 429 obey Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Structured error; see error.code. On 429 obey Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Structured error; see error.code. On 429 obey Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Structured error; see error.code. On 429 obey Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Structured error; see error.code. On 429 obey Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"Structured error; see error.code. On 429 obey Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Structured error; see error.code. On 429 obey Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Structured error; see error.code. On 429 obey Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Structured error; see error.code. On 429 obey Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"createAccount","tags":["Accounts"],"summary":"Create a service account","description":"Requires accounts:write and an unrestricted service key. external_id is any printable 1-120 character customer identifier without leading/trailing whitespace or control/format characters; it is not patient information. Existing external_id returns 409.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["external_id","name"],"properties":{"external_id":{"type":"string","minLength":1,"maxLength":120},"name":{"type":"string","minLength":1,"maxLength":160}}}}}},"responses":{"201":{"description":"Account created.","content":{"application/json":{"schema":{"type":"object","required":["data","request_id"],"properties":{"data":{"$ref":"#/components/schemas/Account"},"request_id":{"type":"string","format":"uuid"}}}}}},"400":{"description":"Structured error; see error.code. On 429 obey Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Structured error; see error.code. On 429 obey Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Structured error; see error.code. On 429 obey Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Structured error; see error.code. On 429 obey Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Structured error; see error.code. On 429 obey Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Structured error; see error.code. On 429 obey Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"Structured error; see error.code. On 429 obey Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Structured error; see error.code. On 429 obey Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Structured error; see error.code. On 429 obey Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Structured error; see error.code. On 429 obey Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/services/{service_id}/recipients":{"parameters":[{"name":"service_id","in":"path","required":true,"description":"Answering-service UUID returned by GET /me. Not the practice/account ID.","schema":{"type":"string","format":"uuid"}}],"get":{"operationId":"listRecipients","tags":["Recipients"],"summary":"List active permitted recipients","description":"Requires recipients:read. Returns up to 500 recipients; provision recipients through the owner control center. API keys are not recipient passwords.","responses":{"200":{"description":"Recipients.","content":{"application/json":{"schema":{"type":"object","required":["data","request_id"],"properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"account_id":{"type":"string","format":"uuid"},"username":{"type":"string"},"display_name":{"type":"string"}}}},"request_id":{"type":"string","format":"uuid"}}}}}},"400":{"description":"Structured error; see error.code. On 429 obey Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Structured error; see error.code. On 429 obey Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Structured error; see error.code. On 429 obey Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Structured error; see error.code. On 429 obey Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Structured error; see error.code. On 429 obey Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Structured error; see error.code. On 429 obey Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"Structured error; see error.code. On 429 obey Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Structured error; see error.code. On 429 obey Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Structured error; see error.code. On 429 obey Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Structured error; see error.code. On 429 obey Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/services/{service_id}/messages":{"parameters":[{"name":"service_id","in":"path","required":true,"description":"Answering-service UUID returned by GET /me. Not the practice/account ID.","schema":{"type":"string","format":"uuid"}}],"post":{"operationId":"sendSecureMessage","tags":["Messages"],"summary":"Accept a secure message for one account’s recipients","description":"Requires messages:write. Atomic all-or-nothing acceptance. A 202 means durably stored, NOT notification delivery or recipient viewing. Only synthetic data is approved. Idempotency-Key and source identities survive token rotation and service restarts.","parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":8,"maxLength":128,"pattern":"^[A-Za-z0-9][A-Za-z0-9._:-]{7,127}$"},"description":"Stable per logical submission within the service. Do not include clinical content."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendMessage"},"example":{"channel":"secure","from":"22222222-2222-4222-8222-222222222222","to":["33333333-3333-4333-8333-333333333333"],"content":{"subject":"Test delivery","text":"This is a synthetic test message. Please mark it In Process, reply, and then mark it Completed."},"external_id":"test-0001","source":{"system":"test","installation_id":"courier-lab"},"priority":"normal"}}}},"responses":{"202":{"description":"Message durably accepted, including identical replay.","content":{"application/json":{"schema":{"type":"object","required":["data","request_id"],"properties":{"data":{"$ref":"#/components/schemas/MessageReceipt"},"request_id":{"type":"string","format":"uuid"}}}}},"headers":{"Location":{"description":"Relative message resource URL.","schema":{"type":"string"}},"Idempotency-Replayed":{"description":"true when the existing message was returned.","schema":{"type":"string","enum":["true","false"]}}}},"400":{"description":"Structured error; see error.code. On 429 obey Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Structured error; see error.code. On 429 obey Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Structured error; see error.code. On 429 obey Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Structured error; see error.code. On 429 obey Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Structured error; see error.code. On 429 obey Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Structured error; see error.code. On 429 obey Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"Structured error; see error.code. On 429 obey Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Structured error; see error.code. On 429 obey Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Structured error; see error.code. On 429 obey Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Structured error; see error.code. On 429 obey Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/services/{service_id}/messages/{message_id}":{"parameters":[{"name":"service_id","in":"path","required":true,"description":"Answering-service UUID returned by GET /me. Not the practice/account ID.","schema":{"type":"string","format":"uuid"}},{"name":"message_id","in":"path","required":true,"description":"Message UUID returned when the message was accepted.","schema":{"type":"string","format":"uuid"}}],"get":{"operationId":"getMessage","tags":["Messages"],"summary":"Read message content and per-recipient state","description":"Requires messages:read. Integration access is audited but never marks the message as viewed by a recipient.","responses":{"200":{"description":"Message and delivery states.","content":{"application/json":{"schema":{"type":"object","required":["data","request_id"],"properties":{"data":{"allOf":[{"$ref":"#/components/schemas/MessageReceipt"},{"type":"object","required":["content"],"properties":{"content":{"$ref":"#/components/schemas/MessageContent"}}}]},"request_id":{"type":"string","format":"uuid"}}}}}},"400":{"description":"Structured error; see error.code. On 429 obey Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Structured error; see error.code. On 429 obey Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Structured error; see error.code. On 429 obey Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Structured error; see error.code. On 429 obey Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Structured error; see error.code. On 429 obey Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Structured error; see error.code. On 429 obey Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"Structured error; see error.code. On 429 obey Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Structured error; see error.code. On 429 obey Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Structured error; see error.code. On 429 obey Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Structured error; see error.code. On 429 obey Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/services/{service_id}/messages/{message_id}/replies":{"parameters":[{"name":"service_id","in":"path","required":true,"description":"Answering-service UUID returned by GET /me. Not the practice/account ID.","schema":{"type":"string","format":"uuid"}},{"name":"message_id","in":"path","required":true,"description":"Message UUID returned when the message was accepted.","schema":{"type":"string","format":"uuid"}}],"get":{"operationId":"getReplies","tags":["Messages"],"summary":"Read replies for a message","description":"Requires messages:read. Replies contain sensitive content; keep them out of logs and notifications.","responses":{"200":{"description":"Replies in creation order.","content":{"application/json":{"schema":{"type":"object","required":["data","request_id"],"properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"message_id":{"type":"string","format":"uuid"},"recipient_id":{"type":"string","format":"uuid"},"text":{"type":"string"},"created_at":{"type":"string","format":"date-time"}}}},"request_id":{"type":"string","format":"uuid"}}}}}},"400":{"description":"Structured error; see error.code. On 429 obey Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Structured error; see error.code. On 429 obey Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Structured error; see error.code. On 429 obey Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Structured error; see error.code. On 429 obey Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Structured error; see error.code. On 429 obey Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Structured error; see error.code. On 429 obey Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"Structured error; see error.code. On 429 obey Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Structured error; see error.code. On 429 obey Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Structured error; see error.code. On 429 obey Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Structured error; see error.code. On 429 obey Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/services/{service_id}/events":{"parameters":[{"name":"service_id","in":"path","required":true,"description":"Answering-service UUID returned by GET /me. Not the practice/account ID.","schema":{"type":"string","format":"uuid"}}],"get":{"operationId":"listEvents","tags":["Events"],"summary":"Poll lifecycle events using a durable cursor","description":"Requires events:read. Events contain IDs and status metadata, not message bodies or reply text. Keep cursor as a decimal string. Process events idempotently and persist the new cursor only after local processing succeeds. Ordering is commit-safe within each service.","parameters":[{"name":"after","in":"query","schema":{"type":"string","pattern":"^[0-9]{1,18}$","default":"0"}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":200,"default":100}}],"responses":{"200":{"description":"Events and next cursor.","content":{"application/json":{"schema":{"type":"object","required":["data","pagination","request_id"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Event"}},"pagination":{"type":"object","properties":{"next_cursor":{"type":"string"},"has_more":{"type":"boolean"},"limit":{"type":"integer"}}},"request_id":{"type":"string","format":"uuid"}}}}}},"400":{"description":"Structured error; see error.code. On 429 obey Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Structured error; see error.code. On 429 obey Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Structured error; see error.code. On 429 obey Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Structured error; see error.code. On 429 obey Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Structured error; see error.code. On 429 obey Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Structured error; see error.code. On 429 obey Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"Structured error; see error.code. On 429 obey Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Structured error; see error.code. On 429 obey Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Structured error; see error.code. On 429 obey Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Structured error; see error.code. On 429 obey Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/services/{service_id}/branding":{"parameters":[{"name":"service_id","in":"path","required":true,"description":"Answering-service UUID returned by GET /me. Not the practice/account ID.","schema":{"type":"string","format":"uuid"}}],"get":{"operationId":"getBranding","tags":["Branding"],"summary":"Read service identity and default brand tokens","description":"Requires branding:read. Version 1 uses Courier pine/lime defaults and the service display name. Custom logos, color editing, branding publication, and custom domains are not implemented in this release.","responses":{"200":{"description":"Brand profile.","content":{"application/json":{"schema":{"type":"object","required":["data","request_id"],"properties":{"data":{"type":"object","properties":{"service_id":{"type":"string","format":"uuid"},"display_name":{"type":"string"},"version":{"type":"integer"},"colors":{"type":"object","additionalProperties":{"type":"string"}},"logo_url":{"type":["string","null"]}}},"request_id":{"type":"string","format":"uuid"}}}}}},"400":{"description":"Structured error; see error.code. On 429 obey Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Structured error; see error.code. On 429 obey Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Structured error; see error.code. On 429 obey Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Structured error; see error.code. On 429 obey Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Structured error; see error.code. On 429 obey Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Structured error; see error.code. On 429 obey Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"Structured error; see error.code. On 429 obey Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"description":"Structured error; see error.code. On 429 obey Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Structured error; see error.code. On 429 obey Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Structured error; see error.code. On 429 obey Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}},"components":{"securitySchemes":{"basicAuth":{"type":"http","scheme":"basic","description":"Username = API key UUID; password = the tc_test_ token shown once in the owner control center. Never use a recipient password."},"bearerAuth":{"type":"http","scheme":"bearer","description":"Alternative header: Bearer KEY_ID.API_TOKEN. Same permissions and expiry as Basic authentication."}},"schemas":{"Error":{"type":"object","required":["error","request_id"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}},"request_id":{"type":"string","format":"uuid"}}},"Account":{"type":"object","required":["id","service_id","external_id","name","created_at"],"properties":{"id":{"type":"string","format":"uuid"},"service_id":{"type":"string","format":"uuid"},"external_id":{"type":"string"},"name":{"type":"string"},"created_at":{"type":"string","format":"date-time"}}},"MessageContent":{"type":"object","additionalProperties":false,"required":["subject","text"],"properties":{"subject":{"type":"string","minLength":1,"maxLength":160},"text":{"type":"string","minLength":1,"maxLength":16000}}},"Source":{"type":"object","additionalProperties":false,"required":["system","installation_id"],"properties":{"system":{"type":"string","enum":["spectrum","tastng","other","test","wctp"]},"installation_id":{"type":"string","minLength":1,"maxLength":120}}},"SendMessage":{"type":"object","additionalProperties":false,"required":["channel","from","to","content","external_id","source"],"properties":{"channel":{"const":"secure"},"from":{"type":"string","format":"uuid"},"to":{"type":"array","minItems":1,"maxItems":100,"uniqueItems":true,"items":{"type":"string","format":"uuid"}},"content":{"$ref":"#/components/schemas/MessageContent"},"external_id":{"type":"string","minLength":1,"maxLength":120},"source":{"$ref":"#/components/schemas/Source"},"priority":{"type":"string","enum":["normal","urgent"],"default":"normal"},"notification_kind":{"type":"string","enum":["message","note"],"default":"message","description":"Selects Message or Note notification preferences. Omit for normal messages."}}},"Delivery":{"type":"object","properties":{"recipient_id":{"type":"string","format":"uuid"},"state":{"type":"string","enum":["unread","viewed","in_process","completed"]},"notification_status":{"type":"string","description":"not_configured when no alert was queued; otherwise channel:state pairs. Provider acceptance is not delivery."},"notifications":{"type":"array","items":{"type":"object","properties":{"channel":{"type":"string","enum":["sms","email"]},"state":{"type":"string","enum":["queued","sending","accepted","uncertain","failed","cancelled"]}}}},"viewed_at":{"type":["string","null"],"format":"date-time"},"updated_at":{"type":"string","format":"date-time"}}},"MessageReceipt":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"service_id":{"type":"string","format":"uuid"},"account_id":{"type":"string","format":"uuid"},"status":{"const":"accepted"},"workflow_status":{"type":"string","enum":["unread","viewed","in_process","completed"]},"priority":{"type":"string","enum":["normal","urgent"]},"accepted_at":{"type":"string","format":"date-time"},"external_id":{"type":"string"},"source":{"$ref":"#/components/schemas/Source"},"deliveries":{"type":"array","items":{"$ref":"#/components/schemas/Delivery"}}}},"Event":{"type":"object","properties":{"id":{"type":"string","description":"Monotonic event cursor within this database; gaps are normal."},"service_id":{"type":"string","format":"uuid"},"account_id":{"type":"string","format":"uuid"},"message_id":{"type":"string","format":"uuid"},"recipient_id":{"type":["string","null"],"format":"uuid"},"type":{"type":"string","enum":["message.accepted","message.viewed","message.in_process","message.completed","message.reopen","message.replied"]},"actor_type":{"type":"string","enum":["integration","recipient"]},"actor_id":{"type":"string","format":"uuid"},"details":{"type":"object","properties":{"reply_id":{"type":"string","format":"uuid"}}},"occurred_at":{"type":"string","format":"date-time"}}}}}}