SpyBara
Go Premium

resources/safety/subresources/alerts/methods/retrieve/index.md 2026-10-28 23:00 UTC to 2026-10-29 23:59 UTC

This page contains 4 additions and 4 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 project safety alert

get /safety/alerts/{id}

Get a safety alert belonging to the authenticated API project.

Path Parameters

  • id: string

    Project safety alert ID

    maxLength: 38

Returns

  • SafetyAlert object { id, created_at, error_type, 7 more }

    • id: string

    • created_at: integer

      format: unixtime

    • error_type: "potentially_unintended_data_transfer" or "potentially_unintended_data_access" or "potentially_unintended_destructive_activity" or "other"

      • "potentially_unintended_data_transfer"

      • "potentially_unintended_data_access"

      • "potentially_unintended_destructive_activity"

      • "other"

    • model: string

    • object: "safety.alert" (default: "safety.alert")

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

      A customer-safe description derived from error_type, or null for zero data retention requests.

    • request_id: string

    • request_paused: boolean

      Whether block registration succeeded for this request. This does not confirm that response execution stopped.

    • response_id: string

    • detailed_explanation: optional string or null

      A generated explanation, temporarily available for eligible zero data retention alerts. Omitted when unavailable.

Example

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

200 — Example

{
  "id": "id",
  "created_at": 0,
  "error_type": "potentially_unintended_data_transfer",
  "model": "model",
  "object": "safety.alert",
  "reason": "reason",
  "request_id": "request_id",
  "request_paused": true,
  "response_id": "response_id",
  "detailed_explanation": "detailed_explanation"
}

Example

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

Response example

{
  "id": "alert_0123456789abcdef0123456789abcdef",
  "object": "safety.alert",
  "created_at": 1787659200,
  "request_id": "req_123",
  "response_id": "resp_123",
  "model": "gpt-6-astra",
  "request_paused": true,
  "error_type": "potentially_unintended_data_access",
  "reason": "Potentially unintended data access."
}