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

# Get Language Details

> Fetch one supported language by ID.

Read only
Returns the full record for a single language supported by DialNexa. The response includes the language's stable `id`, its short language `code` (for example `en`, `hi` or `hi-en` for Hinglish) and the human-readable display `name`. For the voices that speak a language, filter [List Voices](https://dialnexa.com/docs/api-reference/v1/voices/list.md) by `language_id`.

## When To Get Language Details

Use this endpoint when you have a language `id` saved in your own database, on an agent configuration, or in a workflow node, and you need to resolve it to its display name or language code. Common cases include:

* **Agent configuration UIs** that render the selected language for a saved agent and need to show its proper name.
* **Audit and reporting tools** that translate a stored language ID into a localized label for dashboards.
* **Provisioning flows** that resolve a language ID before checking compatible voices and transcribers for an [Update Agent](https://dialnexa.com/docs/api-reference/v1/agents/update.md) request.

If you need the entire catalogue rather than a single record, use [List Languages](https://dialnexa.com/docs/api-reference/v1/languages/list.md) instead. It returns the whole catalog in one root array. Language existence alone does not confirm voice or transcriber compatibility.

## Path parameters

| Parameter | Description |
| - | - |
| `id` | The language ID, for example `lang_mfgsys4hhg8gdn`. |

## Errors

* `404 Not Found` is returned when the `id` does not match any supported language. This usually means the language has been removed from the platform or the ID was mistyped.
* `401 Unauthorized` is returned when the API key is missing, malformed, or has been revoked. See [API authentication](https://dialnexa.com/docs/api-reference/api-fundamentals.md#authenticate-dialnexa-api-requests).

## Related endpoints

* [List Languages](https://dialnexa.com/docs/api-reference/v1/languages/list.md): fetch every language the platform supports.
* [List Voices](https://dialnexa.com/docs/api-reference/v1/voices/list.md): list voices filterable by `language_id`.
* [List Transcribers](https://dialnexa.com/docs/api-reference/v1/transcribers/list.md): check speech-to-text language support.
* [Update Agent](https://dialnexa.com/docs/api-reference/v1/agents/update.md): change the language assigned to an existing agent.


## OpenAPI

````yaml GET /v1/languages/{id}
openapi: 3.0.0
info:
  title: DialNexa API
  description: Public `/v1` REST API for the DialNexa voice AI platform.
  version: 1.0.0
servers:
  - url: https://api.dialnexa.com
    description: DialNexa production API
security:
  - bearer: []
tags:
  - name: Agents
  - name: Batch Calls
  - name: Calls
  - name: Knowledge Base
  - name: Languages
  - name: LLMs
  - name: Phone Numbers
  - name: Organization Folders
  - name: Transcribers
  - name: Webhooks
  - name: Voices
  - name: Workflows
  - name: Workflow Leads
  - name: Authentication
  - name: Agent Builder
  - name: Agent Evaluations
paths:
  /v1/languages/{id}:
    get:
      tags:
        - Languages
      summary: Get Language Details
      description: >-
        Returns id, code, and name for one language catalog entry. Its presence
        does not guarantee compatibility with a particular voice or transcriber.
      operationId: getLanguage
      parameters:
        - name: id
          required: true
          in: path
          description: Language ID
          schema:
            example: lang_mfgsys4hhg8gdn
            type: string
      responses:
        '200':
          description: Language returned successfully.
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                    example: lang_mfgsys4hhg8gdn
                    description: Signed language ID
                  code:
                    type: string
                    description: Short language code, for example en, hi or hi-en.
                    example: en
                  name:
                    type: string
                    example: English
                required:
                  - id
              examples:
                success:
                  summary: Successful response
                  value:
                    id: lang_mfgsys4hhg8gdn
                    code: en
                    name: English
        '401':
          description: Unauthorized.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FilteredErrorResponse'
              examples:
                error:
                  summary: 401 Unauthorized
                  value:
                    message: >-
                      API key is missing or invalid. You can generate this by
                      logging in into dashboard
        '404':
          description: Language not found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FilteredErrorResponse'
              examples:
                error:
                  summary: 404 Not Found
                  value:
                    message: Language with ID mfgsys4hhg8gdn not found
        '500':
          description: Internal server error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FilteredErrorResponse'
              examples:
                error:
                  summary: 500 Internal Server Error
                  value:
                    message: An unexpected error occurred. Please try again later.
      security:
        - bearer: []
components:
  schemas:
    FilteredErrorResponse:
      type: object
      description: >-
        Error body on calls, batch calls, voices, languages and LLMs, which
        return only the message (and data for a coded refusal).
      properties:
        message:
          type: string
        data:
          type: object
          properties:
            code:
              type: string
              description: Machine-readable refusal code.
          description: >-
            Present for a coded refusal: code and the details listed for that
            code.
        validation_errors:
          type: array
          description: >-
            Present when uploaded rows fail number validation (batch and
            workflow lead uploads): one group per distinct error.
          items:
            type: object
            properties:
              error:
                type: string
              rows:
                type: array
                items:
                  type: integer
                description: Row numbers with this error.
              phone_numbers:
                type: array
                items:
                  type: string
        invalid_row_count:
          type: integer
          description: 'Present with validation_errors: how many rows failed.'
      required:
        - message
  securitySchemes:
    bearer:
      scheme: bearer
      type: http

````

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