Skip to main content
Resend Docs

Search documentation

Type to search this documentation.

Retrieve topics for a contact

GET/contacts/{contact_id}/topicsRetrieve topics for a contact

Parameters

contact_idstringpathrequired

The Contact ID or email address.

limitintegerquery

Number of items to return.

maximum 100 · minimum 1

afterstringquery

Return items after this cursor.

beforestringquery

Return items before this cursor.

Responses

200OKapplication/json
objectGetContactTopicsResponseSuccess
dataarray of object

Array containing topic subscriptions for this contact.

Show child attributes
Show array items
descriptionstring

Description of the topic.

idstring

Unique identifier for the topic.

namestring

Name of the topic.

subscriptionstring

The subscription status for this topic.

one of "opt_in", "opt_out"

has_moreboolean

Indicates if there are more results available.

objectstring

Type of the response object.

Example response
{
  "data": [
    {
      "description": "string",
      "id": "string",
      "name": "string",
      "subscription": "opt_in"
    }
  ],
  "has_more": true,
  "object": "list"
}
Documentation menu