Skip to main content

Getting Social Profiles

A Social Profile represents an account on a social network that has been connected to a specific Business Location in Social Marketing.

info

For info on Business Locations see the Businesses guide.

Setup

Create an access token with either the social or business scopes following the Authorization guide.

Examples

Fetching All Connected Social Profiles For A Business

Social Profiles for a single Business Location can be fetched using its ID and an appropriate Authorization token. The data can be used to verify what a business has connected for use in Social Marketing and its current status. Future APIs that are in development will use the IDs obtained from this endpoint to let you access additional functionality.

This example request will enable you to get the first 25 connected Social Profiles for a Business Location, and if there are more, will give you a cursor so you can access the rest.

curl -X GET 'https://prod.apigateway.co/products/social/socialProfiles?filter%5BbusinessLocation.id%5D=AG-ABCD1234G' \
-H 'Authorization: Bearer <Access Token with "social" or "business" scope>' \
-H 'Content-Type: application/vnd.api+json'

Additional requests then only need a cursor alongside your Authorization token to access the rest of the results.

curl -X GET 'https://prod.apigateway.co/products/social/socialProfiles?page%5Bcursor%5D=' \
-H 'Authorization: Bearer <Access Token with "social" or "business" scope>' \
-H 'Content-Type: application/vnd.api+json'