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.

  1. Set request URL
  2. [GET] https://uapi.demandbase.com/data/export/v1/fields
  3. Set URL params
    entityType = account
  4. Set Authorization header
    1. Authorization: Bearer your_JWT_token
  5. Resulting cURL request
    1. curl --location 'https://uapi.demandbase.com/data/export/v1/fields?entityType=account' \
      --header 'Authorization: Bearer your_JWT_token'
  6. Response
    1. [
          {
              "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.


Did this page help you?