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

Get safety case

$ openai safety:cases retrieve
GET/safety/cases/{id}

Get a safety case by ID.

ParametersExpand Collapse
--id: string

Safety case ID

ReturnsExpand Collapse
safety_case: object { id, created_at, entity_identifier, 3 more }
id: string
created_at: number
entity_identifier: string
notice: object { type }
object: "safety.case"
reason: string

Get safety case

openai safety:cases retrieve \
  --api-key 'My API Key' \
  --id id
{
  "id": "C-abc123",
  "object": "safety.case",
  "created_at": 1787659200,
  "entity_identifier": "safety-id-123",
  "reason": "cyber_abuse",
  "notice": {"type": "warning"}
}
Returns Examples
{
  "id": "C-abc123",
  "object": "safety.case",
  "created_at": 1787659200,
  "entity_identifier": "safety-id-123",
  "reason": "cyber_abuse",
  "notice": {"type": "warning"}
}