For the complete documentation index, see llms.txt. Markdown versions of documentation pages are available by appending
.mdto the page URL.
Get safety case
get /safety/cases/{id}
Get a safety case by ID.
Path Parameters
-
id: stringSafety case ID
maxLength: 128
Returns
-
SafetyCase object { id, created_at, entity_identifier, 3 more }-
id: string -
created_at: integerformat: unixtime -
entity_identifier: string -
notice: object { type }-
type: "warning" or "deactivation"-
"warning" -
"deactivation"
-
-
-
object: "safety.case" (default: "safety.case")"safety.case"
-
reason: string or null
-
Example
curl https://api.openai.com/v1/safety/cases/$ID \
-H "Authorization: Bearer $OPENAI_API_KEY"
200 — Example
{
"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 example
{
"id": "C-abc123",
"object": "safety.case",
"created_at": 1787659200,
"entity_identifier": "safety-id-123",
"reason": "cyber_abuse",
"notice": {"type": "warning"}
}