Attachments

View a contact's attachments

Fetch a list of a contact's attachments

GET https://web.r0app.com/api/v1/orgs/:org_id/contacts/:contact_id/attachments

Returns a paginated list of a contact's attachments.

Query Parameters

Name
Type
Description

page

Integer

limit

Integer

Example request

curl https://web.r0app.com/api/v1/orgs/:org_id/contacts/:contact_id/attachments \
    -X GET \
    -H 'Authorization: Bearer <token>'

View a contact's attachment

Fetch a contact's single attachment

GET https://web.r0app.com/api/v1/orgs/:org_id/contacts/:contact_id/attachments/:attachment_id

Returns a single contact. If you need to gather user metadata as well you may reduce the number of requests by using the ?include[] parameter.

Path Parameters

Name
Type
Description

:contact_id*

String

:attachment_id*

String

Example request

curl https://web.r0app.com/api/v1/orgs/:org_id/contacts/:contact_id/attachments/:attachment_id \
    -X GET \
    -H 'Authorization: Bearer <token>'

Upload an attachment

Upload an attachment

POST https://web.r0app.com/api/v1/orgs/:org_id/contacts/:contact_id/attachments

Request Body

Name
Type
Description

upload

File

Example request

curl https://web.r0app.com/api/v1/orgs/:org_id/contacts/:contact_id/attachments \
    -X POST \
    -H 'Authorization: Bearer <token>' \
    -F 'upload=@example.png'

Delete an attachment

NOTE: your attachment will be deleted from our servers immediately. There is no recourse for this action, proceed with caution.

Delete an attachment

DELETE https://web.r0app.com/api/v1/orgs/:org_id/contacts/:contact_id/attachments/:attachment_id

Path Parameters

Name
Type
Description

:contact_id*

String

:attachment_id*

String

Example request

curl https://web.r0app.com/api/v1/orgs/:org_id/contacts/:contact_id/attachments/:attachment_id \
    -X DELETE \
    -H 'Authorization: Bearer <token>'

Last updated