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

For more info, see the pagination section in the Getting started guide.

limit

Integer

For more info, see the pagination section in the Getting started guide.

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 '[email protected]'

Delete an attachment

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

Was this helpful?