Skip to content

Get identities from consent list

Request

Get all identities contained within a consent list for a given project id, app id, and list type.

Security
Basic or oAuth2
Path
project_idstringrequired

The unique ID of the project. You can find this on the Sinch Dashboard.

app_idstringrequired

The unique ID of the app. You can find this on the Sinch Dashboard.

list_typestring(ConsentsListType)required

The consent list type. One of OPT_OUT_ALL, OPT_OUT_MARKETING, and or OPT_OUT_NOTIFICATION.

Enum ValueDescription
OPT_OUT_ALL

List type that blocks all kinds of messages

OPT_OUT_MARKETING

List type that blocks only marketing messages

OPT_OUT_NOTIFICATION

List type that blocks only notification messages

Query
page_sizeinteger, (int32)

Optional. The maximum number of records to fetch. The default is 10 and the maximum is 50.

page_numberinteger, (int32)deprecated

Optional. The page number to fetch. Defaults to first page (0). DEPRECATED: please use page_token instead.

page_tokenstring

A page token, received from a previous Get identities from consent list call. Provide this to retrieve a subsequent page.

curl -i -X GET \
  -u '<username>:<password>' \
  'https://us.conversation.api.sinch.com/v1/projects/{project_id}/apps/{app_id}/consents/{list_type}?page_size=0&page_number=0&page_token=string'

Responses

A successful response.

Bodyapplication/json
identitiesArray of objects(Identity)

List of identities belonging to a specific project ID, app ID, and list type

next_page_tokenstring

Token for the next page of the search, to be used in the next call.

Response
{ "identities": [ { … } ], "next_page_token": "string" }