LayoutService
List My Layout Template Subscriptions
List layout templates followed by the caller.
Method
GET
Path
/v1/layouts/templates/subscriptions
Visibility
Authentication
Session token or API key
MFA Requirement
Not required
GET
/v1/layouts/templates/subscriptions Request
Testnet
curl --request GET \ \ --url 'https://api.testnet.polyester.com/v1/layouts/templates/subscriptions?limit=100&pageToken=eyJvZmZzZXQiOjEwMH0' \ --header 'Accept: */*' \ --header 'X-API-KEY-ID: YOUR_API_KEY_ID' \ --header 'X-API-TIMESTAMP: YOUR_API_TIMESTAMP' \ --header 'X-API-SIGNATURE: YOUR_API_SIGNATURE'
Responses
{
"nextPageToken": "eyJvZmZzZXQiOjIwMH0",
"subscriptions": [
{
"ownerId": "1",
"pinnedVersion": 1,
"templateId": "1",
"trackLatest": false,
"updatedAtMs": "1",
"viewerId": "1"
}
]
} limit integer
Maximum number of subscriptions to return. Defaults to 100 when omitted; maximum is 500.
pageToken string
Opaque keyset cursor from a previous response. The cursor is exclusive and bound to the authenticated caller and newest-updated sort order.
6 fields
viewerId string (fixed64)
Viewer that follows the template.
Example
1 ownerId string (fixed64)
Viewer that owns the template.
Example
1 templateId string (fixed64)
Followed template identifier.
Example
1 trackLatest boolean
True when the subscription follows the latest version automatically.
Example
false pinnedVersion integer (int32)
Version followed when track_latest is false.
Example
1 updatedAtMs string (fixed64)
Subscription update time in milliseconds since epoch (UTC).
Example
1 nextPageToken string
Opaque cursor for the next page. Empty when no more results exist.
Example
eyJvZmZzZXQiOjIwMH0| Key | Status | Error | When |
|---|---|---|---|
| unauthenticated | 401 | Unauthenticated | Authentication required. |
| permission-denied | 403 | Permission Denied | Permission denied. |
| invalid-argument | 400 | Invalid Argument | Invalid argument. |
| not-found | 404 | Not Found | Not found. |
| unavailable | 503 | Unavailable | Service unavailable. |