Skip to main content
GET
/
endpoints
List Endpoints
curl --request GET \
  --url https://external.aieev.cloud:5007/external/api/v1/endpoints \
  --header 'Authorization: Bearer <token>'
import requests

url = "https://external.aieev.cloud:5007/external/api/v1/endpoints"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.text)
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

fetch('https://external.aieev.cloud:5007/external/api/v1/endpoints', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
  CURLOPT_PORT => "5007",
  CURLOPT_URL => "https://external.aieev.cloud:5007/external/api/v1/endpoints",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
  CURLOPT_HTTPHEADER => [
    "Authorization: Bearer <token>"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://external.aieev.cloud:5007/external/api/v1/endpoints"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("Authorization", "Bearer <token>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.get("https://external.aieev.cloud:5007/external/api/v1/endpoints")
  .header("Authorization", "Bearer <token>")
  .asString();
require 'uri'
require 'net/http'

url = URI("https://external.aieev.cloud:5007/external/api/v1/endpoints")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
{
  "items": [
    {
      "id": "cad59665-b77b-4cb6-9308-d276294bce79",
      "name": "my-llm-endpoint",
      "endpoint_type": "container",
      "is_active": true,
      "status": "RUNNING",
      "num_replicas": 2,
      "enable_autoscaling": false,
      "instance_type_name": "RTX 4070 Super",
      "serving_endpoint_url": "https://ap-1.aieev.cloud/ac/7/cad59665-b77b-4cb6-9308-d276294bce79",
      "created_at": "2023-11-07T05:31:56Z",
      "updated_at": "2023-11-07T05:31:56Z"
    }
  ],
  "total": 5,
  "page": 1,
  "size": 50,
  "pages": 1
}

Authorizations

Authorization
string
header
required

Pass your API key as a Bearer token. Create API keys in the project overview.

Query Parameters

Search endpoints by name.

Example:

"my-model"

is_active
boolean

Filter by active status. true returns only running endpoints, false returns only stopped endpoints.

Example:

true

page
integer
default:1

Page number, starting from 1.

Required range: x >= 1
size
integer
default:50

Number of items per page. Min 1, max 2000.

Required range: 1 <= x <= 2000

Response

Paginated list of endpoints.

items
object[]

Array of endpoint objects.

total
integer

Total number of endpoints.

Example:

5

page
integer

Current page number.

Example:

1

size
integer

Items per page.

Example:

50

pages
integer

Total number of pages.

Example:

1