SpyBara
Go Premium

resources/safety/subresources/cases/methods/retrieve/index.md 2026-10-27 23:58 UTC to 2026-10-28 23:00 UTC

This page contains 83 additions and 0 deletions.

2026
Wed 28 23:00 Thu 29 23:59

For the complete documentation index, see llms.txt. Markdown versions of documentation pages are available by appending .md to the page URL.

Get safety case

get /safety/cases/{id}

Get a safety case by ID.

Path Parameters

  • id: string

    Safety case ID

    maxLength: 128

Returns

  • SafetyCase object { id, created_at, entity_identifier, 3 more }

    • id: string

    • created_at: number

      format: unixtime

    • entity_identifier: string

    • notice: object { type }

      • type: "warning" or "deactivation"

        • "warning"

        • "deactivation"

    • object: "safety.case"

      • "safety.case"
    • reason: string or null

Example

curl https://api.openai.com/v1/safety/cases/$ID \
    -H "Authorization: Bearer $OPENAI_API_KEY"

Response

{
  "id": "id",
  "created_at": 0,
  "entity_identifier": "entity_identifier",
  "notice": {
    "type": "warning"
  },
  "object": "safety.case",
  "reason": "reason"
}

Example

curl https://api.openai.com/v1/safety/cases/C-abc123 \
  -H "Authorization: Bearer $OPENAI_API_KEY"

Response

{
  "id": "C-abc123",
  "object": "safety.case",
  "created_at": 1787659200,
  "entity_identifier": "safety-id-123",
  "reason": "cyber_abuse",
  "notice": {"type": "warning"}
}