Demandbase Custom Sources API

Create and manage custom sources.

Operations 5

GET /integration/v1/custom-sources List custom sources
POST /integration/v1/custom-sources Create a custom source
GET /integration/v1/custom-sources/{id} Get a custom source
PUT /integration/v1/custom-sources/{id} Update a custom source
DELETE /integration/v1/custom-sources/{id} Delete a custom source

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-custom-sources-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-custom-sources-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Custom Sources 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: Custom Sources
  description: Create and manage custom sources.
paths:
  /integration/v1/custom-sources:
    get:
      summary: List custom sources
      description: Returns a paginated list of sources, optionally filtered by source group.
      tags:
      - Custom Sources
      parameters:
      - name: group
        in: query
        required: false
        schema:
          type: string
          enum:
          - custom
          - standard
          - all
        description: Filter sources by source group.
      - name: perPage
        in: query
        required: false
        schema:
          type: integer
          format: int32
        description: Number of items per page.
      - name: page
        in: query
        required: false
        schema:
          type: integer
          format: int32
        description: Page number (1-indexed).
      responses:
        '200':
          description: A paginated list of sources.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetSourcesResponse'
              examples:
                Example:
                  value:
                    totalCount: 2
                    data:
                    - id: 1
                      name: Salesforce CRM
                      description: Accounts imported from Salesforce.
                      sourceGroup: custom
                      priority: 50
                    - id: 2
                      name: HubSpot
                      description: Contacts from HubSpot.
                      sourceGroup: custom
                      priority: 51
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '500':
          $ref: '#/components/responses/InternalServerError'
    post:
      summary: Create a custom source
      description: Creates a new custom source and returns the created resource.
      tags:
      - Custom Sources
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateSourceRequest'
            examples:
              Example:
                value:
                  name: Salesforce CRM
                  description: Accounts imported from Salesforce.
                  priority: 50
      responses:
        '201':
          description: The newly created source.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SourceItem'
              examples:
                Example:
                  value:
                    id: 42
                    name: Salesforce CRM
                    description: Accounts imported from Salesforce.
                    sourceGroup: custom
                    priority: 50
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '500':
          $ref: '#/components/responses/InternalServerError'
  /integration/v1/custom-sources/{id}:
    get:
      summary: Get a custom source
      description: Returns a single source by its ID.
      tags:
      - Custom Sources
      parameters:
      - $ref: '#/components/parameters/SourceId'
      responses:
        '200':
          description: The requested source.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SourceItem'
              examples:
                Example:
                  value:
                    id: 42
                    name: Salesforce CRM
                    description: Accounts imported from Salesforce.
                    sourceGroup: custom
                    priority: 50
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '500':
          $ref: '#/components/responses/InternalServerError'
    put:
      summary: Update a custom source
      description: Updates an existing source by its ID and returns the updated resource.
      tags:
      - Custom Sources
      parameters:
      - $ref: '#/components/parameters/SourceId'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateSourceRequest'
            examples:
              Example:
                value:
                  name: Salesforce CRM (updated)
                  description: Updated description.
                  priority: 55
      responses:
        '200':
          description: The updated source.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SourceItem'
              examples:
                Example:
                  value:
                    id: 42
                    name: Salesforce CRM (updated)
                    description: Updated description.
                    sourceGroup: custom
                    priority: 55
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '500':
          $ref: '#/components/responses/InternalServerError'
    delete:
      summary: Delete a custom source
      description: Deletes an existing source by its ID.
      tags:
      - Custom Sources
      parameters:
      - $ref: '#/components/parameters/SourceId'
      responses:
        '204':
          description: Source deleted 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:
    GetSourcesResponse:
      type: object
      required:
      - totalCount
      - data
      properties:
        totalCount:
          type: integer
          format: int64
          description: Total number of sources matching the query.
        data:
          type: array
          items:
            $ref: '#/components/schemas/SourceItem'
    SourceItem:
      type: object
      required:
      - id
      - name
      - description
      - priority
      properties:
        id:
          type: integer
          format: int64
          description: Unique identifier of the source.
        name:
          type: string
          description: Human-readable name of the source.
        description:
          type: string
          description: Description of the source.
        sourceGroup:
          type: string
          description: The group this source belongs to (e.g. `custom`, `standard`).
        priority:
          type: integer
          description: 'Priority for source ordering. 0 = no preference; 50-99 = custom sources (lower number = higher priority).

            '
    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.
    UpdateSourceRequest:
      type: object
      required:
      - name
      - description
      - priority
      properties:
        name:
          type: string
          description: Human-readable name of the source.
        description:
          type: string
          description: Description of the source.
        priority:
          type: integer
          description: 'Priority for source ordering. Valid values: 0 (no preference) or 50-99 (custom) inclusive.

            '
    CreateSourceRequest:
      type: object
      required:
      - name
      - description
      - priority
      properties:
        name:
          type: string
          description: Human-readable name of the source.
        description:
          type: string
          description: Description of the source.
        priority:
          type: integer
          description: 'Priority for source ordering. Valid values: 0 (no preference) or 50-99 (custom) inclusive.

            '
  parameters:
    SourceId:
      name: id
      in: path
      required: true
      schema:
        type: integer
        format: int64
      description: The unique ID of the source.
  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.

        '