List business employers for user
Changed onGet all of the viewing user's business employers.
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.
Query parameters
Include assets summary in the response if this is true. Defaults to true.
The assets summary returns a dictionary representing a summary of the assets for the business user ID, with information like the ad accounts and profiles the user has permissions for and what those permissions are
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": [
{
"id": "549755885175",
"permissions": [
"FINANCE_MANAGER",
"CATALOGS_MANAGER",
"AUDIENCE_MANAGER"
]
}
],
"profiles": [
{
"id": "549755885175",
"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": "549755885175",
"user": {
"email": "business0101@business.com",
"id": "549755885175",
"username": "business0101"
}
}
]
}Changes
- breaking
the response's body type changed from no type to
objectfor status - info
added the new optional
queryrequest parameterassets_summary - 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