Skip to main content
POST
/
orgs
/
{org_id}
/
emergencies
Declare an emergency
curl --request POST \
  --url https://api.punchrescue.com/api/public/v1/orgs/{org_id}/emergencies \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "externalId": "<string>",
  "categoryId": "<string>",
  "categoryName": "<string>",
  "source": "<string>",
  "description": "<string>",
  "occurredAt": "<string>",
  "location": {
    "latitude": 123,
    "longitude": 123,
    "floorId": "<string>"
  },
  "metadata": {},
  "declaredBy": {
    "id": "<string>",
    "name": "<string>"
  }
}
'
{
  "emergencyId": "<string>",
  "orgId": "<string>",
  "status": "<string>",
  "externalId": "<string>",
  "category": {
    "id": "<string>",
    "name": "<string>",
    "color": "<string>",
    "severity": 123
  },
  "source": "<string>",
  "description": "<string>",
  "occurredAt": "<string>",
  "createdAt": "<string>",
  "resolvedAt": "<string>",
  "resolvedBy": {
    "type": "<string>",
    "id": "<string>",
    "name": "<string>"
  },
  "declaredBy": {
    "type": "<string>",
    "id": "<string>",
    "name": "<string>"
  },
  "location": {
    "latitude": 123,
    "longitude": 123,
    "floorId": "<string>"
  },
  "resolutionNote": "<string>",
  "metadata": {}
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

org_id
string
required

Target organization id (from the route path)

Body

application/json
externalId
string | null

Partner-supplied incident id from the caller's own system; indexed, surfaced on reads + webhooks.

Required string length: 1 - 256
categoryId
string | null
categoryName
string | null
source
string | null
Maximum string length: 128
description
string | null
Maximum string length: 2000
occurredAt
string | null
location
PublicLocationInput · object
metadata
Metadata · object
declaredBy
DeclareEmergencyDeclaredBy · object

Response

Successful Response

emergencyId
string
required
orgId
string
required
status
string
required
externalId
string | null
category
PublicCategoryRef · object

Minimal category info embedded on emergencies + webhook payloads.

source
string | null
description
string | null
occurredAt
string | null
createdAt
string | null
resolvedAt
string | null
resolvedBy
PublicActorRef · object

Unified actor shape (declaredBy / resolvedBy) for both user and api_key attribution.

declaredBy
PublicActorRef · object

Unified actor shape (declaredBy / resolvedBy) for both user and api_key attribution.

location
PublicLocation · object
resolutionNote
string | null
metadata
Metadata · object