openapi: 3.2.0
info:
version: '1.0'
title: Data Export Get Reference Data API
description: "Export data in bulk from the Demandbase platform.
Authenticate using a bearer token. Pass a header like: `Authorization: Bearer v334asfsdfo3241ERqwefe`
The part after 'Bearer' is your API token. \nFor instructions on generating API tokens, see the [Generate and Manage API Key Set](https://support.demandbase.com/hc/en-us/articles/38999526296603-Generate-and-Manage-API-Key-Set) article at the Demandbase Help Center"
servers:
- url: https://uapi.demandbase.com/data/export
security:
- token: []
tags:
- name: Get Reference Data
paths:
/v1/references:
get:
tags:
- Get Reference Data
summary: Get available reference objects
operationId: get-reference
responses:
'200':
description: OK
content:
application/json:
schema:
type: object
properties:
refObjectsAvailable:
type: array
items:
type: object
properties:
name:
type: string
description:
type: string
href:
type: string
'401':
$ref: '#/components/responses/401errorDescriptionsForAllApi'
'403':
$ref: '#/components/responses/403errorDescriptionsForAllApi'
'429':
$ref: '#/components/responses/429errorDescriptionsForAllApi'
'500':
$ref: '#/components/responses/500errorDescriptionsForAllApi'
security:
- token: []
/v1/reference/{object}:
get:
tags:
- Get Reference Data
summary: Get reference data fields for an object
operationId: get-support-object
parameters:
- name: object
in: path
required: true
schema:
type: string
enum:
- persona
- buyerRole
- idealBuyingGroup
- idealBuyingGroupPersonaRole
- keywordSet
- keywordSetMember
- JobFunction
- JobLevel
responses:
'200':
description: OK
content:
application/json:
schema:
type: object
properties:
objectType:
type: string
data:
type: array
items:
type: object
'400':
$ref: '#/components/responses/400errorDescriptionsForReferenceData'
'401':
$ref: '#/components/responses/401errorDescriptionsForAllApi'
'403':
$ref: '#/components/responses/403errorDescriptionsForAllApi'
'429':
$ref: '#/components/responses/429errorDescriptionsForAllApi'
'500':
$ref: '#/components/responses/500errorDescriptionsForAllApi'
security:
- token: []
components:
responses:
429errorDescriptionsForAllApi:
description: An endpoint request limit, concurrent-job limit, or export quota was exceeded.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorDto'
example:
errorCode: 429-100
errorMessage: Rate limit exceeded.
diagnosticCode: ce0fc1770e0d425b88892df4f663bf07
500errorDescriptionsForAllApi:
description: An unexpected internal service error occurred.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorDto'
example:
errorCode: 500-100
errorMessage: Error while communicating with internal service.
diagnosticCode: de0fc1770e0d425b88892df4f663bf07
400errorDescriptionsForReferenceData:
description: The requested reference object is not supported.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorDto'
example:
errorCode: 400-154
errorMessage: Invalid reference entity type.
diagnosticCode: 2e0fc1770e0d425b88892df4f663bf07
401errorDescriptionsForAllApi:
description: Authentication credentials are missing or invalid.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorDto'
example:
errorCode: 401-100
errorMessage: Authentication credentials are missing or invalid.
diagnosticCode: 1e0fc1770e0d425b88892df4f663bf07
403errorDescriptionsForAllApi:
description: The authenticated user does not have permission to access this resource.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorDto'
example:
errorCode: 403-100
errorMessage: The authenticated user does not have permission to access this resource.
diagnosticCode: 3e0fc1770e0d425b88892df4f663bf07
schemas:
ErrorDto:
type: object
properties:
errorCode:
type: string
diagnosticCode:
type: string
errorMessage:
type: string
securitySchemes:
token:
type: http
scheme: bearer