{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/engrate/json-schema/engrate-status-request-response-schema.json",
  "title": "StatusRequestResponse",
  "description": "Response from a status request submission to a TSO.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/engrate-status-request-api-openapi.yml#/components/schemas/StatusRequestResponse",
  "properties": {
    "error_message": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Always `null`. An older version of this endpoint used this for messaging failures; the field is kept for backwards compatibility.",
      "title": "Error Message"
    },
    "message_id": {
      "description": "Message identifier assigned to the status request.",
      "title": "Message Id",
      "type": "string"
    },
    "next_allowed_at": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Always `null`. An older version of this endpoint had rate limits here, but those are maintained internally now.",
      "title": "Next Allowed At"
    },
    "sent_at": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "ISO 8601 datetime when the message was queued.",
      "title": "Sent At"
    },
    "status": {
      "const": "queued",
      "description": "Submission lifecycle state. An older version of this endpoint returned other status codes as well, but the only status returned now is `queued`; the field is retained for backwards compatibility.",
      "title": "Status",
      "type": "string"
    }
  },
  "required": [
    "message_id",
    "status"
  ],
  "type": "object"
}