Skip to main content
curl --request GET \
  --url https://api.baseten.co/v1/gateway/endpoints \
  --header "Authorization: Api-Key $BASETEN_API_KEY"
{
  "items": [
    {
      "id": "abc123hash",
      "slug": "my-org/glm-5.2",
      "targets": [
        {
          "provider": "BASETEN",
          "model_id": "3kZ9xqd"
        }
      ],
      "created_at": "2026-06-17T12:00:00Z",
      "updated_at": "2026-06-17T12:00:00Z"
    }
  ],
  "pagination": {
    "has_more": false,
    "cursor": null
  }
}
List the endpoints in your workspace, each with its slug and configured targets. The response is paginated.

Authentication

Authorization
string
required
Workspace API key with management scope, passed as Authorization: Api-Key $BASETEN_API_KEY (or Bearer; both are accepted).

Query parameters

limit
integer
Maximum number of endpoints to return per page.
cursor
string
Opaque cursor for the next page, taken from pagination.cursor of a previous response. Omit it for the first page.

Response

items
object[]
required
The endpoints in this page. Each entry has the same shape as the Create an endpoint response: id, slug, targets, created_at, and updated_at.
pagination
object
required
Pagination metadata.
  • has_more (boolean): Whether more endpoints are available beyond this page.
  • cursor (string): Cursor to pass as cursor to fetch the next page, or null on the last page.

Errors

StatusMeaning
403 ForbiddenWorkspace isn’t onboarded to Frontier Gateway, or the caller doesn’t have management scope.
curl --request GET \
  --url https://api.baseten.co/v1/gateway/endpoints \
  --header "Authorization: Api-Key $BASETEN_API_KEY"
{
  "items": [
    {
      "id": "abc123hash",
      "slug": "my-org/glm-5.2",
      "targets": [
        {
          "provider": "BASETEN",
          "model_id": "3kZ9xqd"
        }
      ],
      "created_at": "2026-06-17T12:00:00Z",
      "updated_at": "2026-06-17T12:00:00Z"
    }
  ],
  "pagination": {
    "has_more": false,
    "cursor": null
  }
}