List subscriptions

GET {{baseUrl}}/api/-/pulse/subscriptions?user_id={{user-id}}

Lists the subscriptions to a specified metric and/or for a specified user.

If only metric-id is specified, all subscriptions for that metric are returned. If only user-id is specified, al subscriptions for that user are returned. If both metric_id or user_id and specified, then the user's subscription for the specified metric is returned. If no metric_id or user_id is specified, all subscriptions on the site will be returned.

Version: Available in API 3.21 (Tableau Cloud December 2023) and later. Not available for Tableau Server. Versioning Overview

Permissions: Any user that has read or connect permission to the data source used in the definition can list subscriptions. Permissions Overview

License: No additional license required.

Access Scope: tableau:metric_subscriptions:read
Access Scopes Overview: Cloud

Request Params

KeyDatatypeRequiredDescription
page_sizestringSpecifies the number of results in a paged response.

Example:

> GET .../subscriptions?pageSize=50

Combining Path Parameters: A page_size expression can be combined with other path parameters using an ampersand (&) as a separator, and is typically used along with a page number expression.

<a href='https://help.tableau.com/current/api/rest_api/en-us/REST/rest_api_concepts_paging.htm&#39; target='_blank'>Learn more about paginating the response</a>. | | page_token | string | | Specifies the page of items to be returned from a requested list. The value of page_token for the next page of returns is found in the next_page_token of the current response. If there are no further items to return, the value of next_page_token will be empty.

Example:

> GET .../definitions?pageToken={next_page_value}

Combining Path Parameters: A page_token expression can be combined with other path parameters using an ampersand (&) as a separator, and is typically used along with a page number expression.

<a href='https://help.tableau.com/current/api/rest_api/en-us/REST/rest_api_concepts_paging.htm&#39; target='_blank'>Learn more about paginating the response</a>. | | user_id | string | | The LUID of a user whose subscriptions will be returned. | | metric_id | string | | The LUID of a metric whose subscriptions will be returned. |

HEADERS

KeyDatatypeRequiredDescription
X-Tableau-AuthstringThe Tableau authentication header. The value is a credentials token from a Tableau server's response to an authentication request.
The Content-Type and Accept headers should be the mediatype of the request and response except in cases where you want to explicitly allow other versions of the resource.
Acceptstring

RESPONSES

status: OK

{&quot;subscriptions&quot;:[{&quot;id&quot;:&quot;\u003cstring\u003e&quot;,&quot;metric_id&quot;:&quot;\u003cstring\u003e&quot;,&quot;follower&quot;:{&quot;user_id&quot;:&quot;\u003cstring\u003e&quot;,&quot;group_id&quot;:&quot;\u003cstring\u003e&quot;},&quot;create_time&quot;:&quot;\u003cstring\u003e&quot;,&quot;update_time&quot;:&quot;\u003cstring\u003e&quot;},{&quot;id&quot;:&quot;\u003cstring\u003e&quot;,&quot;metric_id&quot;:&quot;\u003cstring\u003e&quot;,&quot;follower&quot;:{&quot;user_id&quot;:&quot;\u003cstring\u003e&quot;,&quot;group_id&quot;:&quot;\u003cstring\u003e&quot;},&quot;create_time&quot;:&quot;\u003cstring\u003e&quot;,&quot;update_time&quot;:&quot;\u003cstring\u003e&quot;}],&quot;next_page_token&quot;:&quot;\u003cstring\u003e&quot;}