> ## Documentation Index
> Fetch the complete documentation index at: https://docs.contentignite.com/llms.txt
> Use this file to discover all available pages before exploring further.

# /integration/:id/mapping/entities

> Returns the entities a mapping value can be set on for one integration, as `{ value, label }` option lists per level, for the per-integration mapping grid's entity pickers. Use it to find valid `entity_id`s before calling `POST /v1/integration/{id}/mapping/apply`.

- **Permission:** `ad_stack.view`; the integration must be available to the caller, otherwise 404.
- An entity is offered when it is within the integration's reach (the owner organisation's tree, or every organisation for a core integration owned by organisation 0), so units can be mapped before the integration is added to their stack, **or** it already holds a mapping row for the integration, **or** (publishers, ad stacks, ad units) it is on an ad stack that includes the integration.
- Draft entities are included; archived ones (status below 0) are not. An ad unit needs a live publisher.
- Restricted (non-core) callers only get entities in their own organisation tree.
- Each list is sorted by label. Labels: organisation name, publisher domain, ad stack name, and `domain · unit label` for ad units (falling back to the unit code, then `Ad unit`). Ad stack labels can be null for unnamed stacks.
- The integration level needs no options (its `entity_id` is null), so it isn't listed.
- Lists are not paginated.



## OpenAPI

````yaml /openapi.json get /v1/integration/{id}/mapping/entities
openapi: 3.0.1
info:
  title: CI Public API
  description: >-
    # Introduction

    Welcome to the Content Ignite API. A central place for all Content Ignite
    functionality. 


    This API enforces a separation between function and form, meaning anything
    you can do in our platforms can be replicated in your own bespoke solution.


    # Authentication

    Authentication is handled via JWTs. You can retrieve your unique JSON Web
    Token from the settings page in the platform, which needs to be passed in
    with every request.

    To do this, simple include it in an Authorization header with the "Bearer"
    key word.


    Please contact support for help getting started.


    # Error Codes

    This is a fully RESTful API, so prepare for a number of different HTTP
    status codes.


    There is also a standard "success" field returned for each request. This
    boolean value can provide a first check against a response.


    # Rate limit

    We reserve the right to block requests if we deem a client to be abusing the
    API.
  version: 1.0.0
servers:
  - url: https://api.tagdeliver.com
    description: Production
security:
  - BearerAuth: []
tags:
  - name: Reporting
  - name: Reporting/Revenue Reports
  - name: Reporting/Experiment Reporting
  - name: Reporting/Campaign Reports
  - name: Reporting/Health Check
  - name: Reporting/Ads.txt
  - name: Reporting/Utility
  - name: Reporting/Insights Hub
  - name: Reporting/Insights Hub/SSP Insights
  - name: Reporting/Insights Hub/Core Web Vitals
  - name: Reporting/Insights Hub/Ads.txt Insights
  - name: Reporting/Insights Hub/Live Insights
  - name: Reporting/Insights Hub/Metrics
  - name: Reporting/Insights Hub/Diagnostics
  - name: Reporting/Insights Hub/Revenue Insights
  - name: Reporting/Insights Hub/Revenue Analytics
  - name: Reporting/Insights Hub/Demand Mix
  - name: Reporting/Insights Hub/Benchmarking
  - name: Organisation
  - name: Organisation/Organisation Meta
  - name: Organisation/Pricing
  - name: Ad Stack
  - name: Ad Stack/Integration
  - name: Publisher
  - name: Publisher/Publisher Stack
  - name: Publisher/Publisher Tag
  - name: Publisher/Publisher Meta
  - name: Publisher/Experiment
  - name: Publisher/Config (Ad unit)
  - name: Publisher/App Placement
  - name: AI
  - name: AI/Activity
  - name: Billing
  - name: Billing/Invoice
  - name: Audit Log
  - name: '[IN PROGRESS] Integration'
  - name: '[IN PROGRESS] Integration/Mapping'
  - name: '[IN PROGRESS] User'
  - name: '[IN PROGRESS] User/Account'
  - name: Mapping
  - name: public
paths:
  /v1/integration/{id}/mapping/entities:
    get:
      tags:
        - '[IN PROGRESS] Integration/Mapping'
        - public
      summary: /integration/:id/mapping/entities
      description: >-
        Returns the entities a mapping value can be set on for one integration,
        as `{ value, label }` option lists per level, for the per-integration
        mapping grid's entity pickers. Use it to find valid `entity_id`s before
        calling `POST /v1/integration/{id}/mapping/apply`.


        - **Permission:** `ad_stack.view`; the integration must be available to
        the caller, otherwise 404.

        - An entity is offered when it is within the integration's reach (the
        owner organisation's tree, or every organisation for a core integration
        owned by organisation 0), so units can be mapped before the integration
        is added to their stack, **or** it already holds a mapping row for the
        integration, **or** (publishers, ad stacks, ad units) it is on an ad
        stack that includes the integration.

        - Draft entities are included; archived ones (status below 0) are not.
        An ad unit needs a live publisher.

        - Restricted (non-core) callers only get entities in their own
        organisation tree.

        - Each list is sorted by label. Labels: organisation name, publisher
        domain, ad stack name, and `domain · unit label` for ad units (falling
        back to the unit code, then `Ad unit`). Ad stack labels can be null for
        unnamed stacks.

        - The integration level needs no options (its `entity_id` is null), so
        it isn't listed.

        - Lists are not paginated.
      parameters:
        - name: id
          in: path
          description: >-
            Encoded integration id (an opaque base-36 string such as `gjdhye`,
            as returned by `GET /v1/integration`). Never the raw numeric id.
          required: true
          example: gjdhye
          schema:
            type: string
        - name: uid
          in: query
          description: >-
            Optional publisher uid. When given, the integration is looked up
            among those available to this publisher's organisation (and its
            parents) instead of the caller's own. The publisher must exist and
            not be archived; a restricted (non-core) caller may only pass a
            publisher of their own organisation, otherwise 404 `Not Found`.
          required: false
          example: 12345
          schema:
            type: integer
            minimum: 1
      responses:
        '200':
          description: Option lists per level.
          content:
            application/json:
              schema:
                type: object
                properties:
                  results:
                    type: object
                    properties:
                      organisation:
                        type: array
                        items:
                          type: object
                          properties:
                            value:
                              type: integer
                              description: The entity id to use as a record's `entity_id`.
                            label:
                              type: string
                              description: Display name (null for an unnamed ad stack).
                              nullable: true
                          required:
                            - value
                            - label
                        description: Organisations (`value` = organisation id).
                      publisher:
                        type: array
                        items:
                          type: object
                          properties:
                            value:
                              type: integer
                              description: The entity id to use as a record's `entity_id`.
                            label:
                              type: string
                              description: Display name (null for an unnamed ad stack).
                              nullable: true
                          required:
                            - value
                            - label
                        description: >-
                          Publishers (`value` = publisher uid, `label` =
                          domain).
                      ad_stack:
                        type: array
                        items:
                          type: object
                          properties:
                            value:
                              type: integer
                              description: The entity id to use as a record's `entity_id`.
                            label:
                              type: string
                              description: Display name (null for an unnamed ad stack).
                              nullable: true
                          required:
                            - value
                            - label
                        description: >-
                          Ad stacks (`value` = ad stack id, `label` = stack
                          name).
                      config:
                        type: array
                        items:
                          type: object
                          properties:
                            value:
                              type: integer
                              description: The entity id to use as a record's `entity_id`.
                            label:
                              type: string
                              description: Display name (null for an unnamed ad stack).
                              nullable: true
                          required:
                            - value
                            - label
                        description: >-
                          Ad units (`value` = config id, `label` = `domain ·
                          unit`).
                    required:
                      - organisation
                      - publisher
                      - ad_stack
                      - config
                  success:
                    type: boolean
                    description: Always true on success.
                required:
                  - results
                  - success
              example:
                results:
                  organisation:
                    - value: 214
                      label: Example Media Group
                  publisher:
                    - value: 12345
                      label: example.com
                    - value: 12377
                      label: news.example.com
                  ad_stack:
                    - value: 881
                      label: Prebid main
                  config:
                    - value: 67890
                      label: example.com · Homepage leaderboard
                    - value: 67891
                      label: example.com · MPU 1
                success: true
          headers: {}
        '403':
          description: Missing the required permission.
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                    description: What went wrong.
                  success:
                    type: boolean
                    description: Always false on an error.
                required:
                  - message
                  - success
              example:
                message: User forbidden
                success: false
          headers: {}
        '404':
          description: >-
            The integration (or another referenced entity) doesn't exist or
            isn't available to the caller.
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                    description: What went wrong.
                  success:
                    type: boolean
                    description: Always false on an error.
                required:
                  - message
                  - success
              example:
                message: Integration gjdhye Not Found
                success: false
          headers: {}
      deprecated: false
      security:
        - BearerAuth: []
components:
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.