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

# Program ID to Label

> Returns a hash mapping program IDs to labels for error identification



## OpenAPI

````yaml openapi-spec/swap/v2/swap.yaml get /program-id-to-label
openapi: 3.0.3
info:
  title: Swap API V2
  version: 2.0.0
  description: >
    Jupiter Swap API V2. Three endpoints: `/order` (default happy path with
    managed execution),

    `/build` (advanced path returning raw swap instructions), and `/execute`
    (managed transaction execution for `/order`).
servers:
  - url: https://api.jup.ag/swap/v2
    description: Swap API V2 Endpoint
security: []
paths:
  /program-id-to-label:
    get:
      tags:
        - Swap
      summary: Program ID to Label
      description: >
        Returns a hash, which key is the program id and value is the label.

        This is used to help map error from transaction by identifying the fault
        program id.

        This can be used in conjunction with the `excludeDexes` or `dexes`
        parameter.
      operationId: ProgramIdToLabelGet
      responses:
        '200':
          description: Default response
          content:
            application/json:
              schema:
                type: object
                additionalProperties:
                  type: string
      security:
        - ApiKeyAuth: []
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: Get API key via https://developers.jup.ag/portal

````