Developers

Get a consultation artifact

Retrieve a consultation artifact by the stable identifier delivered in the `ai_consultation.complete` stream event.

GET/artifacts/{artifactId}/

Retrieve a consultation artifact by the stable identifier delivered in the ai_consultation.complete stream event.

A 200 response contains Markdown in data.content.body. A 202 response means generation is still in progress and the client should retry later with bounded backoff. A 404 response means the artifact is unavailable in the authenticated organization and user scope. A 500 response means generation failed.

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

Path Parameters

artifactId*string

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/artifacts/string/"
{  "code": "success",  "message": "Request successful",  "data": {    "artifactType": "soap_note",    "artifactId": "string",    "content": {      "chatId": "string",      "createdAt": "2019-08-24T14:15:22Z",      "body": "string"    }  }}