Skip to main content
All CollectionsAPI
How to Generate Client ID, Client Secret, and Scope for V2 API Access
How to Generate Client ID, Client Secret, and Scope for V2 API Access
Danielle From BayEngage avatar
Written by Danielle From BayEngage
Updated over 2 months ago

1. Log in to BayEngage and navigate to Apps β†’ Custom Integration Settings, as shown in the screenshot below.

2. After clicking Settings, navigate to Version 2.0 and click the Create button, as shown in the image below.

3. Then, choose all the relevant scopes required for API access and click Create, as shown in the screenshot below.

4. Then, the following screen will appear, displaying the Client ID, Client Secret, and Scope.

5. We have now successfully generated the Client ID, Client Secret, and Scope for accessing V2 APIs.

6. Next, navigate tohttps://developer.targetbay.com/bayengage/v2

7. Pass the generated Client ID, Client Secret, and Scope in the authentication API as shown in the screenshot below.

8. Upon successful submission, you will receive an access token in response.

9. Use this access token as Authorization with Auth Type: Bearer Token in every API request.

Note: The access token expires every 60 minutes. After it expires, a new access code must be generated.

Did this answer your question?