Cohere

Cohere Proxy Route

GET/cohere/{endpoint}
Authorization
Path parameters
endpoint*Endpoint
Response

Successful Response

Body
any
Request
const response = await fetch('/cohere/{endpoint}', {
    method: 'GET',
    headers: {},
});
const data = await response.json();
Response
{
  "detail": [
    {
      "loc": [
        "text"
      ],
      "msg": "text",
      "type": "text"
    }
  ]
}

Cohere Proxy Route

POST/cohere/{endpoint}
Authorization
Path parameters
endpoint*Endpoint
Response

Successful Response

Body
any
Request
const response = await fetch('/cohere/{endpoint}', {
    method: 'POST',
    headers: {},
});
const data = await response.json();
Response
{
  "detail": [
    {
      "loc": [
        "text"
      ],
      "msg": "text",
      "type": "text"
    }
  ]
}

Cohere Proxy Route

PUT/cohere/{endpoint}
Authorization
Path parameters
endpoint*Endpoint
Response

Successful Response

Body
any
Request
const response = await fetch('/cohere/{endpoint}', {
    method: 'PUT',
    headers: {},
});
const data = await response.json();
Response
{
  "detail": [
    {
      "loc": [
        "text"
      ],
      "msg": "text",
      "type": "text"
    }
  ]
}

Cohere Proxy Route

DELETE/cohere/{endpoint}
Authorization
Path parameters
endpoint*Endpoint
Response

Successful Response

Body
any
Request
const response = await fetch('/cohere/{endpoint}', {
    method: 'DELETE',
    headers: {},
});
const data = await response.json();
Response
{
  "detail": [
    {
      "loc": [
        "text"
      ],
      "msg": "text",
      "type": "text"
    }
  ]
}

Cohere Proxy Route

PATCH/cohere/{endpoint}
Authorization
Path parameters
endpoint*Endpoint
Response

Successful Response

Body
any
Request
const response = await fetch('/cohere/{endpoint}', {
    method: 'PATCH',
    headers: {},
});
const data = await response.json();
Response
{
  "detail": [
    {
      "loc": [
        "text"
      ],
      "msg": "text",
      "type": "text"
    }
  ]
}