K

Files

get
/files

Response

JSON
{
  "object": "string",
  "data": [
    {
      "id": "string",
      "object": "string",
      "bytes": 0,
      "created_at": 0,
      "filename": "string",
      "purpose": "string",
      "status": "string",
      "status_details": {}
    }
  ]
}

post
/files

Response

JSON
{
  "id": "string",
  "object": "string",
  "bytes": 0,
  "created_at": 0,
  "filename": "string",
  "purpose": "string",
  "status": "string",
  "status_details": {}
}

get
/files/{file_id}

Path parameters

  • Name
    file_id
    Type
    string
    Required
    Description

    The ID of the file to use for this request

Response

JSON
{
  "id": "string",
  "object": "string",
  "bytes": 0,
  "created_at": 0,
  "filename": "string",
  "purpose": "string",
  "status": "string",
  "status_details": {}
}

delete
/files/{file_id}

Path parameters

  • Name
    file_id
    Type
    string
    Required
    Description

    The ID of the file to use for this request

Response

JSON
{
  "id": "string",
  "object": "string",
  "deleted": true
}

get
/files/{file_id}/content

Path parameters

  • Name
    file_id
    Type
    string
    Required
    Description

    The ID of the file to use for this request

Response

JSON
"string"