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

# Generate IPID (GET)

> 
### Overview

Same as [Generate IPID](/api-reference/doc-tool/ipd-api/admissions/generate-ipid): returns the next IPD case number for your workspace.

> **This GET changes data.** Each call increases the running number by one, exactly like the `POST`. Do not call it just to preview the next IPID — use [Get IPID Config](/api-reference/doc-tool/ipd-api/admissions/get-ipid-config) instead.



## OpenAPI

````yaml get /ipd/v1/service/admissions/generate-ipid
openapi: 3.0.0
info:
  title: Ekacare API & Webhook Documentation
  contact: {}
  version: '1.0'
servers:
  - description: Production
    url: https://api.eka.care
  - description: Stage/Sandbox
    url: https://api.dev.eka.care
security: []
paths:
  /ipd/v1/service/admissions/generate-ipid:
    get:
      tags:
        - IPD API
      summary: Generate IPID (GET)
      description: >-

        ### Overview


        Same as [Generate
        IPID](/api-reference/doc-tool/ipd-api/admissions/generate-ipid): returns
        the next IPD case number for your workspace.


        > **This GET changes data.** Each call increases the running number by
        one, exactly like the `POST`. Do not call it just to preview the next
        IPID — use [Get IPID
        Config](/api-reference/doc-tool/ipd-api/admissions/get-ipid-config)
        instead.
      operationId: GenerateIpdIpidGet
      parameters:
        - name: auth
          in: header
          required: true
          schema:
            type: string
          example: >-
            eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJiX2lkIjoiMTIzNDU2IiwiY2xpZW50X2lkIjoiNzg5MCIsImV4dHJhX2ZpZWxkIjoiZXh0cmFfZmllbGRfZGF0YSJ9.q9KzBI6f4l3OyM_EkB5Quq0l9EEMFh5JS-fx3F_PHUM
      responses:
        '200':
          description: OK — the generated IPID.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IpdIpidResponse'
              example:
                success: true
                data:
                  ipid: IPD1044
        '400':
          description: Bad Request — the IPID could not be generated.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IpdServiceFailure'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IpdServiceError'
      deprecated: false
components:
  schemas:
    IpdIpidResponse:
      title: IpdIpidResponse
      type: object
      properties:
        success:
          type: boolean
        data:
          type: object
          properties:
            ipid:
              type: string
              description: The generated IPD case number.
    IpdServiceFailure:
      title: IpdServiceFailure
      type: object
      properties:
        success:
          type: boolean
          description: Always `false`.
        error:
          type: string
          description: Human-readable error message.
    IpdServiceError:
      title: IpdServiceError
      type: object
      properties:
        message:
          type: string
          description: Human-readable error message.

````

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