List Serverless Endpoints
curl --request GET \
  --url https://api.tensorone.ai/v2/endpoints \
  --header 'Authorization: <api-key>'
{
  "endpoints": [
    {
      "id": "<string>",
      "name": "<string>",
      "status": "active",
      "url": "<string>",
      "templateId": "<string>",
      "gpuType": "<string>",
      "createdAt": "2023-11-07T05:31:56Z",
      "updatedAt": "2023-11-07T05:31:56Z"
    }
  ],
  "total": 123
}
Use this endpoint to list all serverless endpoints associated with your account. You can filter results by status and limit the number of returned endpoints.

Query Parameters

  • limit (optional): Maximum number of endpoints to return (1-100, default: 10)
  • status (optional): Filter by endpoint status (active, inactive, pending)

Example Usage

curl -X GET "https://api.tensorone.ai/v2/endpoints?limit=20&status=active" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json"

Response

Returns an object containing an array of endpoints and the total count:
{
    "endpoints": [
        {
            "id": "ep_1234567890abcdef",
            "name": "my-text-generation-model",
            "status": "active",
            "url": "https://api.tensorone.ai/v2/ep_1234567890abcdef/runsync",
            "templateId": "tpl_abcdefghijk",
            "gpuType": "NVIDIA A100",
            "createdAt": "2024-01-15T10:30:00Z",
            "updatedAt": "2024-01-15T10:30:00Z"
        }
    ],
    "total": 1
}

Authorizations

Authorization
string
header
required

API key authentication. Use 'Bearer YOUR_API_KEY' format.

Query Parameters

limit
integer
default:10

Maximum number of endpoints to return

Required range: 1 <= x <= 100
status
enum<string>

Filter endpoints by status

Available options:
active,
inactive,
pending

Response

Successful response with list of endpoints

The response is of type object.