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

# List emergency categories

> **Required permission:** `read`.

Returns the categories an emergency can be declared under for this org.
Use the resulting `categoryId` (or `name`) in `POST /orgs/{orgId}/emergencies`.
Lives under `/emergencies/` for agent discoverability — answers
"what kinds of emergencies can I declare?" without backing up the tree.



## OpenAPI

````yaml https://api.rescue-serverless.dev.back2back.team/api/public/v1/openapi.json get /orgs/{org_id}/emergencies/categories
openapi: 3.1.0
info:
  title: Rescue Public API v1
  description: >-
    Stable public API for partner integrations.


    **Authentication:** `Authorization: Bearer rk_live_<8 hex><64 hex>`. Tokens
    are minted via `POST /api/v1/api-keys` (internal admin) and shown exactly
    once at creation. The same plaintext is required for every public-v1 request
    — store it securely.


    **Permissions:** v1 vocabulary is `read` | `write`. Future versions may
    introduce granular `<resource>:<action>` permissions additively.


    **Idempotency:** retries on a 5xx must be assumed to have unknown outcomes —
    check `GET /emergencies/{id}` (optionally via `externalId`) before retrying.
    An `Idempotency-Key` header will be supported in a future revision.


    **Webhook delivery:** payloads may be duplicated and out-of-order. Dedup on
    `eventId`; order events per emergency on `(emergencyId, sequence)`.
  version: 1.0.0
servers:
  - url: https://api.punchrescue.com/api/public/v1
security:
  - BearerAuth: []
paths:
  /orgs/{org_id}/emergencies/categories:
    get:
      tags:
        - Categories
      summary: List emergency categories
      description: >-
        **Required permission:** `read`.


        Returns the categories an emergency can be declared under for this org.

        Use the resulting `categoryId` (or `name`) in `POST
        /orgs/{orgId}/emergencies`.

        Lives under `/emergencies/` for agent discoverability — answers

        "what kinds of emergencies can I declare?" without backing up the tree.
      operationId: emergencies.categories.list
      parameters:
        - name: org_id
          in: path
          required: true
          schema:
            type: string
            description: Target organization id (from the route path)
            title: Org Id
          description: Target organization id (from the route path)
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaginatedCategoriesResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    PaginatedCategoriesResponse:
      properties:
        items:
          items:
            $ref: '#/components/schemas/PublicCategoryResponse'
          type: array
          title: Items
        nextCursor:
          anyOf:
            - type: string
            - type: 'null'
          title: Nextcursor
      type: object
      required:
        - items
      title: PaginatedCategoriesResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    PublicCategoryResponse:
      properties:
        categoryId:
          type: string
          title: Categoryid
        name:
          type: string
          title: Name
        color:
          anyOf:
            - type: string
            - type: 'null'
          title: Color
        responseLevel:
          anyOf:
            - type: string
            - type: 'null'
          title: Responselevel
        severity:
          anyOf:
            - type: integer
            - type: 'null'
          title: Severity
        isSystem:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Issystem
        createdAt:
          anyOf:
            - type: string
            - type: 'null'
          title: Createdat
      type: object
      required:
        - categoryId
        - name
      title: PublicCategoryResponse
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: rk_live_<8hex><64hex>

````