{
  "info": {
    "_postman_id": "99437115-6cc2-4364-9c75-e31929fc9686",
    "name": "Cortex Messages API",
    "description": "OpenAPI 3.0 specification for the Cortex Messages REST 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-99437115-6cc2-4364-9c75-e31929fc9686?source=collection_link"
  },
  "item": [
    {
      "name": "api",
      "item": [
        {
          "name": "v2",
          "item": [
            {
              "name": "cortex",
              "item": [
                {
                  "name": "v1",
                  "item": [
                    {
                      "name": "messages",
                      "item": [
                        {
                          "name": "Perform LLM text completion inference using Cortex Messages API format.",
                          "request": {
                            "method": "POST",
                            "header": [
                              {
                                "key": "Content-Type",
                                "value": "application/json"
                              },
                              {
                                "key": "Accept",
                                "value": "application/json"
                              }
                            ],
                            "body": {
                              "mode": "raw",
                              "raw": "{\n  \"key_0\": true,\n  \"key_1\": 6444.864378824655,\n  \"key_2\": 9340\n}",
                              "options": {
                                "raw": {
                                  "headerFamily": "json",
                                  "language": "json"
                                }
                              }
                            },
                            "url": {
                              "raw": "{{baseUrl}}/api/v2/cortex/v1/messages",
                              "host": [
                                "{{baseUrl}}"
                              ],
                              "path": [
                                "api",
                                "v2",
                                "cortex",
                                "v1",
                                "messages"
                              ]
                            },
                            "description": "Perform LLM text completion inference using Cortex Messages 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\": true,\n  \"key_1\": 6444.864378824655,\n  \"key_2\": 9340\n}",
                                  "options": {
                                    "raw": {
                                      "headerFamily": "json",
                                      "language": "json"
                                    }
                                  }
                                },
                                "url": {
                                  "raw": "{{baseUrl}}/api/v2/cortex/v1/messages",
                                  "host": [
                                    "{{baseUrl}}"
                                  ],
                                  "path": [
                                    "api",
                                    "v2",
                                    "cortex",
                                    "v1",
                                    "messages"
                                  ]
                                }
                              },
                              "status": "OK",
                              "code": 200,
                              "_postman_previewlanguage": "json",
                              "header": [
                                {
                                  "key": "Content-Type",
                                  "value": "application/json"
                                }
                              ],
                              "cookie": [],
                              "body": "{\n  \"key_0\": true,\n  \"key_1\": 6444.864378824655,\n  \"key_2\": 9340\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\": true,\n  \"key_1\": 6444.864378824655,\n  \"key_2\": 9340\n}",
                                  "options": {
                                    "raw": {
                                      "headerFamily": "json",
                                      "language": "json"
                                    }
                                  }
                                },
                                "url": {
                                  "raw": "{{baseUrl}}/api/v2/cortex/v1/messages",
                                  "host": [
                                    "{{baseUrl}}"
                                  ],
                                  "path": [
                                    "api",
                                    "v2",
                                    "cortex",
                                    "v1",
                                    "messages"
                                  ]
                                }
                              },
                              "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": "89e17678-d2b2-d5fc-b6ca-bfcae98d4d17"
                                }
                              ],
                              "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\": true,\n  \"key_1\": 6444.864378824655,\n  \"key_2\": 9340\n}",
                                  "options": {
                                    "raw": {
                                      "headerFamily": "json",
                                      "language": "json"
                                    }
                                  }
                                },
                                "url": {
                                  "raw": "{{baseUrl}}/api/v2/cortex/v1/messages",
                                  "host": [
                                    "{{baseUrl}}"
                                  ],
                                  "path": [
                                    "api",
                                    "v2",
                                    "cortex",
                                    "v1",
                                    "messages"
                                  ]
                                }
                              },
                              "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": "89e17678-d2b2-d5fc-b6ca-bfcae98d4d17"
                                }
                              ],
                              "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\": true,\n  \"key_1\": 6444.864378824655,\n  \"key_2\": 9340\n}",
                                  "options": {
                                    "raw": {
                                      "headerFamily": "json",
                                      "language": "json"
                                    }
                                  }
                                },
                                "url": {
                                  "raw": "{{baseUrl}}/api/v2/cortex/v1/messages",
                                  "host": [
                                    "{{baseUrl}}"
                                  ],
                                  "path": [
                                    "api",
                                    "v2",
                                    "cortex",
                                    "v1",
                                    "messages"
                                  ]
                                }
                              },
                              "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": "89e17678-d2b2-d5fc-b6ca-bfcae98d4d17"
                                }
                              ],
                              "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\": true,\n  \"key_1\": 6444.864378824655,\n  \"key_2\": 9340\n}",
                                  "options": {
                                    "raw": {
                                      "headerFamily": "json",
                                      "language": "json"
                                    }
                                  }
                                },
                                "url": {
                                  "raw": "{{baseUrl}}/api/v2/cortex/v1/messages",
                                  "host": [
                                    "{{baseUrl}}"
                                  ],
                                  "path": [
                                    "api",
                                    "v2",
                                    "cortex",
                                    "v1",
                                    "messages"
                                  ]
                                }
                              },
                              "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": "89e17678-d2b2-d5fc-b6ca-bfcae98d4d17"
                                }
                              ],
                              "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\": true,\n  \"key_1\": 6444.864378824655,\n  \"key_2\": 9340\n}",
                                  "options": {
                                    "raw": {
                                      "headerFamily": "json",
                                      "language": "json"
                                    }
                                  }
                                },
                                "url": {
                                  "raw": "{{baseUrl}}/api/v2/cortex/v1/messages",
                                  "host": [
                                    "{{baseUrl}}"
                                  ],
                                  "path": [
                                    "api",
                                    "v2",
                                    "cortex",
                                    "v1",
                                    "messages"
                                  ]
                                }
                              },
                              "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": "89e17678-d2b2-d5fc-b6ca-bfcae98d4d17"
                                }
                              ],
                              "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\": true,\n  \"key_1\": 6444.864378824655,\n  \"key_2\": 9340\n}",
                                  "options": {
                                    "raw": {
                                      "headerFamily": "json",
                                      "language": "json"
                                    }
                                  }
                                },
                                "url": {
                                  "raw": "{{baseUrl}}/api/v2/cortex/v1/messages",
                                  "host": [
                                    "{{baseUrl}}"
                                  ],
                                  "path": [
                                    "api",
                                    "v2",
                                    "cortex",
                                    "v1",
                                    "messages"
                                  ]
                                }
                              },
                              "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": "89e17678-d2b2-d5fc-b6ca-bfcae98d4d17"
                                }
                              ],
                              "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\": true,\n  \"key_1\": 6444.864378824655,\n  \"key_2\": 9340\n}",
                                  "options": {
                                    "raw": {
                                      "headerFamily": "json",
                                      "language": "json"
                                    }
                                  }
                                },
                                "url": {
                                  "raw": "{{baseUrl}}/api/v2/cortex/v1/messages",
                                  "host": [
                                    "{{baseUrl}}"
                                  ],
                                  "path": [
                                    "api",
                                    "v2",
                                    "cortex",
                                    "v1",
                                    "messages"
                                  ]
                                }
                              },
                              "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": "89e17678-d2b2-d5fc-b6ca-bfcae98d4d17"
                                }
                              ],
                              "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\": true,\n  \"key_1\": 6444.864378824655,\n  \"key_2\": 9340\n}",
                                  "options": {
                                    "raw": {
                                      "headerFamily": "json",
                                      "language": "json"
                                    }
                                  }
                                },
                                "url": {
                                  "raw": "{{baseUrl}}/api/v2/cortex/v1/messages",
                                  "host": [
                                    "{{baseUrl}}"
                                  ],
                                  "path": [
                                    "api",
                                    "v2",
                                    "cortex",
                                    "v1",
                                    "messages"
                                  ]
                                }
                              },
                              "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": "89e17678-d2b2-d5fc-b6ca-bfcae98d4d17"
                                }
                              ],
                              "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": "/"
    }
  ]
}