Get invites/requests
Changed onGet the membership/partnership invites and/or requests for the authorized user.
Request
- Base URLhttps://api.pinterest.com/v5
- AuthOAuth 2Authorization codehttps://www.pinterest.com/oauth/Token URLhttps://api.pinterest.com/v5/oauth/tokenScopesbiz_access:read
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
Unique identifier of the requesting business.
Query parameters
A boolean field to indicate whether the invite is to create a partnership or a membership.
A list of invite statuses to filter invites by. Only invites whose status is in the provided statuses will be returned.
The type of invite. MEMBER_INVITE invites a member to access your business assets. PARTNER_INVITE invites a partner to access your business assets. PARTNER_REQUEST requests access to a partner's business assets.
Invite type to filter invites by. Only invites of the specified type will be returned.
Cursor used to fetch the next page of items
Maximum number of items to include in a single page. See documentation on Pagination for more information.
Response
The request has succeeded.
Example response
{
"items": [
{
"assets_summary": {
"ad_accounts": [
{
"permissions": [
"FINANCE_MANAGER",
"CATALOGS_MANAGER",
"AUDIENCE_MANAGER"
]
}
],
"profiles": [
{
"permissions": [
"FINANCE_MANAGER",
"CATALOGS_MANAGER",
"AUDIENCE_MANAGER"
]
}
]
},
"business_roles": [
"BIZ_ADMIN"
],
"created_by_business": {
"email": "business0101@business.com",
"id": "549755885175",
"username": "business0101"
},
"created_by_user": {
"email": "business0101@business.com",
"id": "549755885175",
"username": "business0101"
},
"created_time": 1646767577816,
"id": "383791336903426391",
"user": {
"email": "business0101@business.com",
"id": "549755885175",
"username": "business0101"
}
}
]
}Changes
- breaking
the response's body type changed from no type to
objectfor status - info
removed
subschema #2from the response bodyallOflist for the response status - info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the optional property
to the response with the status - info
added the required property
to the response with the status
- breaking
- info
endpoint added
- info