cURL
Example
curl --request POST \ --url https://api.anagram.care/api/auth/v1/patients/ \ --header 'Authorization: <api-key>' \ --header 'Content-Type: application/json' \ --data '{ "first_name": "Michael", "last_name": "Enslin", "dob": "1950-02-28", "ssn_last_four": "1234", "sex": "male", "email": "mike@foo.bar", "phone": "1234567890", "address": { "line1": "61st Street, Dolphin Hotel", "line2": "Room 1408", "city": "New York", "state": "NY", "zipcode": "10065" }}'
{ "created_at": "2025-03-18T13:51:16.926798+00:00", "location_id": 57, "first_name": "michael", "middle_name": null, "last_name": "enslin", "dob": "1950-02-28", "sex": "male", "ssn_last_four": "1234", "address": { "line1": "61st Street, Dolphin Hotel", "line2": "Room 1408", "recipient": null, "city": "New York", "zipcode": "10065", "state": "NY" }, "email": "mike@foo.bar", "phone": "1234567890", "account_number": null, "code": "PAT21T", "location": { "id": 57, "status": "enabled", "title": "Main street branch", "code": "LOC57T" } }
Your API token prefaced with an "Api" prefix. Example value: "Api B3F4242424E3FDB4242424242A9C7642"
JSON object response
The response is of type object.
object