Demandbase Field Mappings API

Configure field mappings for a source and object type.

Operations 2

GET /integration/v1/custom-sources/{source_id}/field-mappings/{object_type} Get field mappings
PUT /integration/v1/custom-sources/{source_id}/field-mappings/{object_type} Upsert field mappings

Documentation

📖
Documentation
https://developer.demandbase.com/docs/b2b-overview
📖
APIReference
https://developer.demandbase.com/reference/companysearch_1
📖
GettingStarted
https://developer.demandbase.com/docs/b2b-make-your-first-request
📖
Authentication
https://developer.demandbase.com/docs/b2b-authentication
📖
RateLimits
https://developer.demandbase.com/docs/b2b-rate-limits
📖
BestPractices
https://developer.demandbase.com/docs/b2b-best-practices
📖
Documentation
https://developer.demandbase.com/docs/export-overview
📖
APIReference
https://developer.demandbase.com/reference/createexportjob
📖
GettingStarted
https://developer.demandbase.com/docs/make-your-first-request
📖
Authentication
https://developer.demandbase.com/docs/authentication
📖
RateLimits
https://developer.demandbase.com/docs/rate-limits
📖
Documentation
https://developer.demandbase.com/docs/import-overview
📖
APIReference
https://developer.demandbase.com/reference/post_job
📖
GettingStarted
https://developer.demandbase.com/docs/make-your-first-request-1
📖
Authentication
https://developer.demandbase.com/docs/authentication-1
📖
RateLimits
https://developer.demandbase.com/docs/rate-limits-1
📖
Documentation
https://developer.demandbase.com/reference/company-intent
📖
APIReference
https://developer.demandbase.com/reference/companyintent-1
📖
Documentation
https://developer.demandbase.com/docs/user-admin-overview
📖
APIReference
https://developer.demandbase.com/reference/post_admin-v1-user
📖
Authentication
https://developer.demandbase.com/docs/authentication-3
📖
Documentation
https://developer.demandbase.com/docs/credit-usage-overview
📖
APIReference
https://developer.demandbase.com/reference/getcreditusagedetails
📖
Authentication
https://developer.demandbase.com/docs/authentication-2
📖
Documentation
https://developer.demandbase.com/docs/custom-sources-overview
📖
APIReference
https://developer.demandbase.com/reference/get_integration-v1-custom-sources
📖
Documentation
https://developer.demandbase.com/docs/authenticating-with-the-apis
📖
APIReference
https://developer.demandbase.com/reference/generate_access_token
📖
Authentication
https://raw.githubusercontent.com/api-evangelist/demandbase/refs/heads/main/authentication/demandbase-authentication.yml

Specifications

Other Resources

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/demandbase-field-mappings-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

demandbase-field-mappings-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Custom Sources Field Mappings API
  description: 'Manage custom sources in the Demandbase platform. Custom sources let you define

    named data origins and configure field mappings for the data they provide.

    '
  version: '1.0'
servers:
- url: https://uapi.demandbase.demandbase.com
security:
- bearerAuth: []
tags:
- name: Field Mappings
  description: Configure field mappings for a source and object type.
paths:
  /integration/v1/custom-sources/{source_id}/field-mappings/{object_type}:
    get:
      summary: Get field mappings
      description: Returns the field mappings configured for the given source and object type.
      tags:
      - Field Mappings
      parameters:
      - $ref: '#/components/parameters/SourceIdForMappings'
      - $ref: '#/components/parameters/ObjectType'
      responses:
        '200':
          description: Field mappings for the specified source and object type.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FieldMappingsResponse'
              examples:
                Example:
                  value:
                    fieldMappings:
                    - sourceFieldLabel: annual_revenue
                      demandbaseFieldName: annualRevenue
                      dataType: number
                    - sourceFieldLabel: hq_country
                      demandbaseFieldName: country
                      dataType: string
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '500':
          $ref: '#/components/responses/InternalServerError'
    put:
      summary: Upsert field mappings
      description: 'Creates or replaces the field mappings for the given source and object type.

        The full set of mappings provided in the request body replaces any existing mappings.

        '
      tags:
      - Field Mappings
      parameters:
      - $ref: '#/components/parameters/SourceIdForMappings'
      - $ref: '#/components/parameters/ObjectType'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/FieldMappingRequest'
            examples:
              Example:
                value:
                  fieldMappings:
                  - sourceFieldLabel: annual_revenue
                    demandbaseFieldName: annualRevenue
                    dataType: number
                  - sourceFieldLabel: hq_country
                    demandbaseFieldName: country
                    dataType: string
      responses:
        '201':
          description: Field mappings upserted successfully. No content returned.
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '500':
          $ref: '#/components/responses/InternalServerError'
components:
  responses:
    InternalServerError:
      description: An unexpected server error occurred.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/StructuredError'
          examples:
            Example:
              value:
                error:
                  code: 500-001
                  message: Internal server error.
                  diagnosticCode: a1b2c3d4-e5f6-7890-abcd-ef1234567890
    NotFound:
      description: The requested resource was not found.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/StructuredError'
          examples:
            Example:
              value:
                error:
                  code: 404-000
                  message: Resource not found.
                  diagnosticCode: a1b2c3d4-e5f6-7890-abcd-ef1234567890
    BadRequest:
      description: The request body or query parameters are invalid.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/StructuredError'
          examples:
            Example:
              value:
                error:
                  code: 400-000
                  message: Invalid input.
                  diagnosticCode: a1b2c3d4-e5f6-7890-abcd-ef1234567890
    Unauthorized:
      description: Authentication credentials are missing or invalid.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/StructuredError'
          examples:
            Example:
              value:
                error:
                  code: 403-000
                  message: Unauthorized.
                  diagnosticCode: a1b2c3d4-e5f6-7890-abcd-ef1234567890
  schemas:
    FieldMappingsResponse:
      type: object
      required:
      - fieldMappings
      properties:
        fieldMappings:
          type: array
          items:
            $ref: '#/components/schemas/FieldMappingDTO'
          description: List of field mappings configured for the requested source/object type.
    StructuredError:
      type: object
      required:
      - error
      properties:
        error:
          type: object
          required:
          - code
          - message
          - diagnosticCode
          properties:
            code:
              type: string
              description: 'Machine-readable error code (e.g. `400-000`, `404-000`, `500-001`). Default values by HTTP status: 400 → `400-000`, 404 → `404-000`, 500 → `500-001`.

                '
            message:
              type: string
              description: Human-readable description of the error.
            diagnosticCode:
              type: string
              description: UUID for tracing the request in server logs.
    FieldMappingRequest:
      type: object
      required:
      - fieldMappings
      properties:
        fieldMappings:
          type: array
          items:
            $ref: '#/components/schemas/FieldMappingDTO'
          description: Field mappings to create/update for the given object type.
    FieldMappingDTO:
      type: object
      required:
      - sourceFieldLabel
      - demandbaseFieldName
      - dataType
      properties:
        sourceFieldLabel:
          type: string
          description: Label/name of the field as provided by the external source.
        demandbaseFieldName:
          type: string
          description: Canonical Demandbase field name the source field is mapped to.
        dataType:
          type: string
          description: 'Data type of the mapped field (for example: string, number, boolean, date).'
  parameters:
    SourceIdForMappings:
      name: source_id
      in: path
      required: true
      schema:
        type: integer
        format: int64
      description: The unique ID of the source.
    ObjectType:
      name: object_type
      in: path
      required: true
      schema:
        type: string
        enum:
        - account
        - person
      description: The object type for which field mappings are configured.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: 'Pass a header like: `Authorization: Bearer <JWT Token>`


        Visit [My Profile -> API Token](https://web.demandbase.com/o/ad/at) to generate an API token.

        '