Make Your First Request
Make your first request
Before you begin
Generate a Demandbase API token using Authenticate with Demandbase APIs. Replace your_JWT_token with the token. Your account must have access to the Data Export API.
For this example, we will be retrieving the available export fields for an account.
- Set request URL
-
[GET] https://uapi.demandbase.com/data/export/v1/fields - Set URL params
entityType = account - Set Authorization header
-
Authorization: Bearer your_JWT_token
-
- Resulting cURL request
-
curl --location 'https://uapi.demandbase.com/data/export/v1/fields?entityType=account' \ --header 'Authorization: Bearer your_JWT_token'
-
- Response
-
[ { "name": "{Account}.SEG_1052", "label": "MAS-Account-Tier (Segment)", "dataType": "String" }, {...} // Results truncated for this example ]
-
A successful 200 OK response returns the available fields for the account entity. Use a field’s name in the field selection when you create an export job; see the Export API workflow for polling and downloading results.
Updated 24 days ago
Did this page help you?