Perplexity · Schema

AsyncApiChatCompletionsResponse

Properties

Name Type Description
id string Unique identifier for the async request
model string Model used for the request
created_at integer Unix timestamp when the request was created
started_at object Unix timestamp when processing started
completed_at object Unix timestamp when processing completed
response object
failed_at object Unix timestamp when the request failed (if applicable)
error_message object Error message if the request failed
status object Current processing status of the request
View JSON Schema on GitHub

JSON Schema

perplexity-asyncapichatcompletionsresponse-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/AsyncApiChatCompletionsResponse",
  "title": "AsyncApiChatCompletionsResponse",
  "properties": {
    "id": {
      "type": "string",
      "title": "Id",
      "description": "Unique identifier for the async request"
    },
    "model": {
      "type": "string",
      "title": "Model",
      "description": "Model used for the request"
    },
    "created_at": {
      "type": "integer",
      "title": "Created At",
      "description": "Unix timestamp when the request was created"
    },
    "started_at": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Started At",
      "description": "Unix timestamp when processing started"
    },
    "completed_at": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Completed At",
      "description": "Unix timestamp when processing completed"
    },
    "response": {
      "anyOf": [
        {
          "$ref": "#/components/schemas/CompletionResponse"
        },
        {
          "type": "null"
        }
      ]
    },
    "failed_at": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Failed At",
      "description": "Unix timestamp when the request failed (if applicable)"
    },
    "error_message": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Error Message",
      "description": "Error message if the request failed"
    },
    "status": {
      "$ref": "#/components/schemas/AsyncProcessingStatus",
      "description": "Current processing status of the request"
    }
  },
  "type": "object",
  "required": [
    "id",
    "model",
    "created_at",
    "status"
  ]
}