{
  "info": {
    "_postman_id": "1e56e171-4f97-4256-a594-04c3767df5c4",
    "name": "Cortex Chat Completions API",
    "description": "OpenAPI 3.0 specification for the Cortex Chat Completions API\n\nContact Support:\n Name: Snowflake, Inc.\n Email: support@snowflake.com",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
    "_exporter_id": "53314882",
    "_collection_link": "https://go.postman.co/collection/53314882-1e56e171-4f97-4256-a594-04c3767df5c4?source=collection_link"
  },
  "item": [
    {
      "name": "api",
      "item": [
        {
          "name": "v2",
          "item": [
            {
              "name": "cortex",
              "item": [
                {
                  "name": "v1",
                  "item": [
                    {
                      "name": "chat",
                      "item": [
                        {
                          "name": "completions",
                          "item": [
                            {
                              "name": "Perform LLM text completion inference using Cortex Chat Completions API format.",
                              "request": {
                                "method": "POST",
                                "header": [
                                  {
                                    "key": "Content-Type",
                                    "value": "application/json"
                                  },
                                  {
                                    "key": "Accept",
                                    "value": "application/json"
                                  }
                                ],
                                "body": {
                                  "mode": "raw",
                                  "raw": "{\n  \"key_0\": 1737.7815901989036\n}",
                                  "options": {
                                    "raw": {
                                      "headerFamily": "json",
                                      "language": "json"
                                    }
                                  }
                                },
                                "url": {
                                  "raw": "{{baseUrl}}/api/v2/cortex/v1/chat/completions",
                                  "host": [
                                    "{{baseUrl}}"
                                  ],
                                  "path": [
                                    "api",
                                    "v2",
                                    "cortex",
                                    "v1",
                                    "chat",
                                    "completions"
                                  ]
                                },
                                "description": "Perform LLM text completion inference using Chat Completions API format."
                              },
                              "response": [
                                {
                                  "name": "OK",
                                  "originalRequest": {
                                    "method": "POST",
                                    "header": [
                                      {
                                        "key": "Content-Type",
                                        "value": "application/json"
                                      },
                                      {
                                        "key": "Accept",
                                        "value": "application/json"
                                      },
                                      {
                                        "description": "Added as a part of security scheme: bearer",
                                        "key": "Authorization",
                                        "value": "Bearer <token>"
                                      }
                                    ],
                                    "body": {
                                      "mode": "raw",
                                      "raw": "{\n  \"key_0\": 1737.7815901989036\n}",
                                      "options": {
                                        "raw": {
                                          "headerFamily": "json",
                                          "language": "json"
                                        }
                                      }
                                    },
                                    "url": {
                                      "raw": "{{baseUrl}}/api/v2/cortex/v1/chat/completions",
                                      "host": [
                                        "{{baseUrl}}"
                                      ],
                                      "path": [
                                        "api",
                                        "v2",
                                        "cortex",
                                        "v1",
                                        "chat",
                                        "completions"
                                      ]
                                    }
                                  },
                                  "status": "OK",
                                  "code": 200,
                                  "_postman_previewlanguage": "json",
                                  "header": [
                                    {
                                      "key": "Content-Type",
                                      "value": "application/json"
                                    }
                                  ],
                                  "cookie": [],
                                  "body": "{\n  \"key_0\": 1737.7815901989036\n}"
                                },
                                {
                                  "name": "Bad Request. The request payload is invalid or malformed. This happens if the application didn't send the correct request payload. The response body may include the error code and message indicating the actual cause. The application must reconstruct the r",
                                  "originalRequest": {
                                    "method": "POST",
                                    "header": [
                                      {
                                        "key": "Content-Type",
                                        "value": "application/json"
                                      },
                                      {
                                        "key": "Accept",
                                        "value": "application/json"
                                      },
                                      {
                                        "description": "Added as a part of security scheme: bearer",
                                        "key": "Authorization",
                                        "value": "Bearer <token>"
                                      }
                                    ],
                                    "body": {
                                      "mode": "raw",
                                      "raw": "{\n  \"key_0\": 1737.7815901989036\n}",
                                      "options": {
                                        "raw": {
                                          "headerFamily": "json",
                                          "language": "json"
                                        }
                                      }
                                    },
                                    "url": {
                                      "raw": "{{baseUrl}}/api/v2/cortex/v1/chat/completions",
                                      "host": [
                                        "{{baseUrl}}"
                                      ],
                                      "path": [
                                        "api",
                                        "v2",
                                        "cortex",
                                        "v1",
                                        "chat",
                                        "completions"
                                      ]
                                    }
                                  },
                                  "status": "Bad Request",
                                  "code": 400,
                                  "_postman_previewlanguage": "json",
                                  "header": [
                                    {
                                      "key": "Content-Type",
                                      "value": "application/json"
                                    },
                                    {
                                      "disabled": false,
                                      "description": {
                                        "content": "Unique ID of the API request.",
                                        "type": "text/plain"
                                      },
                                      "key": "X-Snowflake-Request-ID",
                                      "value": "355b32cc-9d28-dc63-e607-ba97d611c7a9"
                                    }
                                  ],
                                  "cookie": [],
                                  "body": "{\n  \"message\": \"Compilation error!\",\n  \"error_code\": \"390189\",\n  \"request_id\": \"01afef9d-0607-0550-0001-dd270c3902d7\"\n}"
                                },
                                {
                                  "name": "Unauthorized. The request is not authorized. This happens if the attached access token is invalid or missing. The response body may include the error code and message indicating the actual cause, e.g., expired, invalid token. The application must obtain a",
                                  "originalRequest": {
                                    "method": "POST",
                                    "header": [
                                      {
                                        "key": "Content-Type",
                                        "value": "application/json"
                                      },
                                      {
                                        "key": "Accept",
                                        "value": "application/json"
                                      },
                                      {
                                        "description": "Added as a part of security scheme: bearer",
                                        "key": "Authorization",
                                        "value": "Bearer <token>"
                                      }
                                    ],
                                    "body": {
                                      "mode": "raw",
                                      "raw": "{\n  \"key_0\": 1737.7815901989036\n}",
                                      "options": {
                                        "raw": {
                                          "headerFamily": "json",
                                          "language": "json"
                                        }
                                      }
                                    },
                                    "url": {
                                      "raw": "{{baseUrl}}/api/v2/cortex/v1/chat/completions",
                                      "host": [
                                        "{{baseUrl}}"
                                      ],
                                      "path": [
                                        "api",
                                        "v2",
                                        "cortex",
                                        "v1",
                                        "chat",
                                        "completions"
                                      ]
                                    }
                                  },
                                  "status": "Unauthorized",
                                  "code": 401,
                                  "_postman_previewlanguage": "json",
                                  "header": [
                                    {
                                      "key": "Content-Type",
                                      "value": "application/json"
                                    },
                                    {
                                      "disabled": false,
                                      "description": {
                                        "content": "Unique ID of the API request.",
                                        "type": "text/plain"
                                      },
                                      "key": "X-Snowflake-Request-ID",
                                      "value": "355b32cc-9d28-dc63-e607-ba97d611c7a9"
                                    }
                                  ],
                                  "cookie": [],
                                  "body": "{\n  \"message\": \"Compilation error!\",\n  \"error_code\": \"390189\",\n  \"request_id\": \"01afef9d-0607-0550-0001-dd270c3902d7\"\n}"
                                },
                                {
                                  "name": "Forbidden. The request is forbidden. This can also happen if the request is made even if the API is not enabled.",
                                  "originalRequest": {
                                    "method": "POST",
                                    "header": [
                                      {
                                        "key": "Content-Type",
                                        "value": "application/json"
                                      },
                                      {
                                        "key": "Accept",
                                        "value": "application/json"
                                      },
                                      {
                                        "description": "Added as a part of security scheme: bearer",
                                        "key": "Authorization",
                                        "value": "Bearer <token>"
                                      }
                                    ],
                                    "body": {
                                      "mode": "raw",
                                      "raw": "{\n  \"key_0\": 1737.7815901989036\n}",
                                      "options": {
                                        "raw": {
                                          "headerFamily": "json",
                                          "language": "json"
                                        }
                                      }
                                    },
                                    "url": {
                                      "raw": "{{baseUrl}}/api/v2/cortex/v1/chat/completions",
                                      "host": [
                                        "{{baseUrl}}"
                                      ],
                                      "path": [
                                        "api",
                                        "v2",
                                        "cortex",
                                        "v1",
                                        "chat",
                                        "completions"
                                      ]
                                    }
                                  },
                                  "status": "Forbidden",
                                  "code": 403,
                                  "_postman_previewlanguage": "json",
                                  "header": [
                                    {
                                      "key": "Content-Type",
                                      "value": "application/json"
                                    },
                                    {
                                      "disabled": false,
                                      "description": {
                                        "content": "Unique ID of the API request.",
                                        "type": "text/plain"
                                      },
                                      "key": "X-Snowflake-Request-ID",
                                      "value": "355b32cc-9d28-dc63-e607-ba97d611c7a9"
                                    }
                                  ],
                                  "cookie": [],
                                  "body": "{\n  \"message\": \"Compilation error!\",\n  \"error_code\": \"390189\",\n  \"request_id\": \"01afef9d-0607-0550-0001-dd270c3902d7\"\n}"
                                },
                                {
                                  "name": "Not Found. The request endpoint is not valid. This happens if the API endpoint does not exist, or if the API is not enabled.",
                                  "originalRequest": {
                                    "method": "POST",
                                    "header": [
                                      {
                                        "key": "Content-Type",
                                        "value": "application/json"
                                      },
                                      {
                                        "key": "Accept",
                                        "value": "application/json"
                                      },
                                      {
                                        "description": "Added as a part of security scheme: bearer",
                                        "key": "Authorization",
                                        "value": "Bearer <token>"
                                      }
                                    ],
                                    "body": {
                                      "mode": "raw",
                                      "raw": "{\n  \"key_0\": 1737.7815901989036\n}",
                                      "options": {
                                        "raw": {
                                          "headerFamily": "json",
                                          "language": "json"
                                        }
                                      }
                                    },
                                    "url": {
                                      "raw": "{{baseUrl}}/api/v2/cortex/v1/chat/completions",
                                      "host": [
                                        "{{baseUrl}}"
                                      ],
                                      "path": [
                                        "api",
                                        "v2",
                                        "cortex",
                                        "v1",
                                        "chat",
                                        "completions"
                                      ]
                                    }
                                  },
                                  "status": "Not Found",
                                  "code": 404,
                                  "_postman_previewlanguage": "json",
                                  "header": [
                                    {
                                      "key": "Content-Type",
                                      "value": "application/json"
                                    },
                                    {
                                      "disabled": false,
                                      "description": {
                                        "content": "Unique ID of the API request.",
                                        "type": "text/plain"
                                      },
                                      "key": "X-Snowflake-Request-ID",
                                      "value": "355b32cc-9d28-dc63-e607-ba97d611c7a9"
                                    }
                                  ],
                                  "cookie": [],
                                  "body": "{\n  \"message\": \"Compilation error!\",\n  \"error_code\": \"390189\",\n  \"request_id\": \"01afef9d-0607-0550-0001-dd270c3902d7\"\n}"
                                },
                                {
                                  "name": "Method Not Allowed. The request method doesn't match the supported API. This happens, for example, if the application calls the API with GET method but the endpoint accepts only POST.",
                                  "originalRequest": {
                                    "method": "POST",
                                    "header": [
                                      {
                                        "key": "Content-Type",
                                        "value": "application/json"
                                      },
                                      {
                                        "key": "Accept",
                                        "value": "application/json"
                                      },
                                      {
                                        "description": "Added as a part of security scheme: bearer",
                                        "key": "Authorization",
                                        "value": "Bearer <token>"
                                      }
                                    ],
                                    "body": {
                                      "mode": "raw",
                                      "raw": "{\n  \"key_0\": 1737.7815901989036\n}",
                                      "options": {
                                        "raw": {
                                          "headerFamily": "json",
                                          "language": "json"
                                        }
                                      }
                                    },
                                    "url": {
                                      "raw": "{{baseUrl}}/api/v2/cortex/v1/chat/completions",
                                      "host": [
                                        "{{baseUrl}}"
                                      ],
                                      "path": [
                                        "api",
                                        "v2",
                                        "cortex",
                                        "v1",
                                        "chat",
                                        "completions"
                                      ]
                                    }
                                  },
                                  "status": "Method Not Allowed",
                                  "code": 405,
                                  "_postman_previewlanguage": "json",
                                  "header": [
                                    {
                                      "key": "Content-Type",
                                      "value": "application/json"
                                    },
                                    {
                                      "disabled": false,
                                      "description": {
                                        "content": "Unique ID of the API request.",
                                        "type": "text/plain"
                                      },
                                      "key": "X-Snowflake-Request-ID",
                                      "value": "355b32cc-9d28-dc63-e607-ba97d611c7a9"
                                    }
                                  ],
                                  "cookie": [],
                                  "body": "{\n  \"message\": \"Compilation error!\",\n  \"error_code\": \"390189\",\n  \"request_id\": \"01afef9d-0607-0550-0001-dd270c3902d7\"\n}"
                                },
                                {
                                  "name": "Internal Server Error. The server hit an unrecoverable system error. The response body may include the error code and message for further guidance. The application owner may need to reach out the customer support.",
                                  "originalRequest": {
                                    "method": "POST",
                                    "header": [
                                      {
                                        "key": "Content-Type",
                                        "value": "application/json"
                                      },
                                      {
                                        "key": "Accept",
                                        "value": "application/json"
                                      },
                                      {
                                        "description": "Added as a part of security scheme: bearer",
                                        "key": "Authorization",
                                        "value": "Bearer <token>"
                                      }
                                    ],
                                    "body": {
                                      "mode": "raw",
                                      "raw": "{\n  \"key_0\": 1737.7815901989036\n}",
                                      "options": {
                                        "raw": {
                                          "headerFamily": "json",
                                          "language": "json"
                                        }
                                      }
                                    },
                                    "url": {
                                      "raw": "{{baseUrl}}/api/v2/cortex/v1/chat/completions",
                                      "host": [
                                        "{{baseUrl}}"
                                      ],
                                      "path": [
                                        "api",
                                        "v2",
                                        "cortex",
                                        "v1",
                                        "chat",
                                        "completions"
                                      ]
                                    }
                                  },
                                  "status": "Internal Server Error",
                                  "code": 500,
                                  "_postman_previewlanguage": "json",
                                  "header": [
                                    {
                                      "key": "Content-Type",
                                      "value": "application/json"
                                    },
                                    {
                                      "disabled": false,
                                      "description": {
                                        "content": "Unique ID of the API request.",
                                        "type": "text/plain"
                                      },
                                      "key": "X-Snowflake-Request-ID",
                                      "value": "355b32cc-9d28-dc63-e607-ba97d611c7a9"
                                    }
                                  ],
                                  "cookie": [],
                                  "body": "{\n  \"message\": \"Compilation error!\",\n  \"error_code\": \"390189\",\n  \"request_id\": \"01afef9d-0607-0550-0001-dd270c3902d7\"\n}"
                                },
                                {
                                  "name": "Service Unavailable. The request was not processed due to server side timeouts. The application may retry with backoff. The jittered backoff is recommended.",
                                  "originalRequest": {
                                    "method": "POST",
                                    "header": [
                                      {
                                        "key": "Content-Type",
                                        "value": "application/json"
                                      },
                                      {
                                        "key": "Accept",
                                        "value": "application/json"
                                      },
                                      {
                                        "description": "Added as a part of security scheme: bearer",
                                        "key": "Authorization",
                                        "value": "Bearer <token>"
                                      }
                                    ],
                                    "body": {
                                      "mode": "raw",
                                      "raw": "{\n  \"key_0\": 1737.7815901989036\n}",
                                      "options": {
                                        "raw": {
                                          "headerFamily": "json",
                                          "language": "json"
                                        }
                                      }
                                    },
                                    "url": {
                                      "raw": "{{baseUrl}}/api/v2/cortex/v1/chat/completions",
                                      "host": [
                                        "{{baseUrl}}"
                                      ],
                                      "path": [
                                        "api",
                                        "v2",
                                        "cortex",
                                        "v1",
                                        "chat",
                                        "completions"
                                      ]
                                    }
                                  },
                                  "status": "Service Unavailable",
                                  "code": 503,
                                  "_postman_previewlanguage": "json",
                                  "header": [
                                    {
                                      "key": "Content-Type",
                                      "value": "application/json"
                                    },
                                    {
                                      "disabled": false,
                                      "description": {
                                        "content": "Unique ID of the API request.",
                                        "type": "text/plain"
                                      },
                                      "key": "X-Snowflake-Request-ID",
                                      "value": "355b32cc-9d28-dc63-e607-ba97d611c7a9"
                                    }
                                  ],
                                  "cookie": [],
                                  "body": "{\n  \"message\": \"Compilation error!\",\n  \"error_code\": \"390189\",\n  \"request_id\": \"01afef9d-0607-0550-0001-dd270c3902d7\"\n}"
                                },
                                {
                                  "name": "Gateway Timeout. The request was not processed due to server side timeouts. The application may retry with backoff. The jittered backoff is recommended.",
                                  "originalRequest": {
                                    "method": "POST",
                                    "header": [
                                      {
                                        "key": "Content-Type",
                                        "value": "application/json"
                                      },
                                      {
                                        "key": "Accept",
                                        "value": "application/json"
                                      },
                                      {
                                        "description": "Added as a part of security scheme: bearer",
                                        "key": "Authorization",
                                        "value": "Bearer <token>"
                                      }
                                    ],
                                    "body": {
                                      "mode": "raw",
                                      "raw": "{\n  \"key_0\": 1737.7815901989036\n}",
                                      "options": {
                                        "raw": {
                                          "headerFamily": "json",
                                          "language": "json"
                                        }
                                      }
                                    },
                                    "url": {
                                      "raw": "{{baseUrl}}/api/v2/cortex/v1/chat/completions",
                                      "host": [
                                        "{{baseUrl}}"
                                      ],
                                      "path": [
                                        "api",
                                        "v2",
                                        "cortex",
                                        "v1",
                                        "chat",
                                        "completions"
                                      ]
                                    }
                                  },
                                  "status": "Gateway Timeout",
                                  "code": 504,
                                  "_postman_previewlanguage": "json",
                                  "header": [
                                    {
                                      "key": "Content-Type",
                                      "value": "application/json"
                                    },
                                    {
                                      "disabled": false,
                                      "description": {
                                        "content": "Unique ID of the API request.",
                                        "type": "text/plain"
                                      },
                                      "key": "X-Snowflake-Request-ID",
                                      "value": "355b32cc-9d28-dc63-e607-ba97d611c7a9"
                                    }
                                  ],
                                  "cookie": [],
                                  "body": "{\n  \"message\": \"Compilation error!\",\n  \"error_code\": \"390189\",\n  \"request_id\": \"01afef9d-0607-0550-0001-dd270c3902d7\"\n}"
                                }
                              ]
                            }
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        }
      ]
    }
  ],
  "auth": {
    "type": "bearer",
    "bearer": [
      {
        "key": "token",
        "value": "{{bearerToken}}",
        "type": "string"
      }
    ]
  },
  "variable": [
    {
      "key": "baseUrl",
      "value": "/"
    }
  ]
}