Emergency Contacts
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Responses
200
List of contacts
application/json
401
Unauthorized – missing or invalid access token
application/json
get
/emergency-contacts/GET /api/v1/emergency-contacts/ HTTP/1.1
Host: api.therappai.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
[
{
"id": 1,
"full_name": "text",
"relationship": "text",
"phone_number": "text",
"email": "name@gmail.com",
"address": "text",
"photo_url": "text"
}
]Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
full_namestringRequired
relationshipstringRequired
phone_numberstringRequired
emailstring · emailRequired
addressstring | nullableOptional
photostring · binaryOptional
Responses
201
Emergency contact created
application/json
401
Unauthorized – missing or invalid access token
application/json
post
/emergency-contacts/POST /api/v1/emergency-contacts/ HTTP/1.1
Host: api.therappai.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: multipart/form-data
Accept: */*
Content-Length: 123
{
"full_name": "text",
"relationship": "text",
"phone_number": "text",
"email": "name@gmail.com",
"address": "text",
"photo": "binary"
}{
"id": 1,
"full_name": "text",
"relationship": "text",
"phone_number": "text",
"email": "name@gmail.com",
"address": "text",
"photo_url": "text"
}Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
idintegerRequired
Responses
200
Contact details
application/json
401
Unauthorized – missing or invalid access token
application/json
get
/emergency-contacts/{id}/GET /api/v1/emergency-contacts/{id}/ HTTP/1.1
Host: api.therappai.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"id": 1,
"full_name": "text",
"relationship": "text",
"phone_number": "text",
"email": "name@gmail.com",
"address": "text",
"photo_url": "text"
}Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
idintegerRequired
Responses
204
Contact deleted
401
Unauthorized – missing or invalid access token
application/json
delete
/emergency-contacts/{id}/DELETE /api/v1/emergency-contacts/{id}/ HTTP/1.1
Host: api.therappai.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
No content
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
idintegerRequired
Body
idintegerOptional
full_namestringOptional
relationshipstringOptional
phone_numberstringOptional
emailstring · emailOptional
addressstring | nullableOptional
photo_urlstring | nullableOptional
Responses
200
Contact updated
No content
401
Unauthorized – missing or invalid access token
application/json
patch
/emergency-contacts/{id}/PATCH /api/v1/emergency-contacts/{id}/ HTTP/1.1
Host: api.therappai.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 132
{
"id": 1,
"full_name": "text",
"relationship": "text",
"phone_number": "text",
"email": "name@gmail.com",
"address": "text",
"photo_url": "text"
}No content
Last updated

