---
title: "Create Endpoint"
method: POST
path: "/gateways/llms/endpoints/"
tags: ["Gateway: LLM"]
---

# Create Endpoint

`POST /gateways/llms/endpoints/`

## Request body

- LLMEndpointCreateRequest
  - `endpoint` LLMEndpointCreate, required
    - `flags` LLMEndpointFlags
      - `is_active` boolean
    - `tags` object, nullable
    - `meta` object, nullable
    - `name` string, nullable
    - `description` string, nullable
    - `slug` string, nullable
    - `provider_key` string, nullable
    - `deployment_kind` 'direct' | 'custom' | 'azure' | 'bedrock' | 'sagemaker' | 'vertex_ai' | 'mock', required — How an upstream model deployment is reached.
    - `secret_id` string, uuid, nullable
    - `data` LLMEndpointData
      - `route` LLMEndpointRoute — Provider-specific route fields.
        - `base_url` string, nullable
        - `headers` object, nullable
        - `api_version` string, nullable
        - `region` string, nullable
        - `extras` object, nullable
      - `models` GatewayEndpointFilter — Allowlist and denylist filter for models or tools.
        - `allowlist` string[], nullable
        - `denylist` string[], nullable
      - `settings` LLMEndpointSettings
        - `timeout_seconds` number, nullable
        - `max_output_tokens` integer, nullable

## Response `200`

Successful Response

- LLMEndpointResponse
  - `count` integer
  - `endpoint` LLMEndpoint
    - `flags` LLMEndpointFlags
      - `is_active` boolean
    - `tags` object, nullable
    - `meta` object, nullable
    - `created_at` string, date-time, nullable
    - `updated_at` string, date-time, nullable
    - `deleted_at` string, date-time, nullable
    - `created_by_id` string, uuid, nullable
    - `updated_by_id` string, uuid, nullable
    - `deleted_by_id` string, uuid, nullable
    - `name` string, nullable
    - `description` string, nullable
    - `slug` string, nullable
    - `id` string, uuid, nullable
    - `provider_key` string, nullable
    - `deployment_kind` 'direct' | 'custom' | 'azure' | 'bedrock' | 'sagemaker' | 'vertex_ai' | 'mock', required — How an upstream model deployment is reached.
    - `namespace` 'builtin' | 'standard' | 'custom' — Gateway route namespace.
    - `secret_id` string, uuid, nullable
    - `data` LLMEndpointData
      - `route` LLMEndpointRoute — Provider-specific route fields.
        - `base_url` string, nullable
        - `headers` object, nullable
        - `api_version` string, nullable
        - `region` string, nullable
        - `extras` object, nullable
      - `models` GatewayEndpointFilter — Allowlist and denylist filter for models or tools.
        - `allowlist` string[], nullable
        - `denylist` string[], nullable
      - `settings` LLMEndpointSettings
        - `timeout_seconds` number, nullable
        - `max_output_tokens` integer, nullable
    - `status` Status
      - `timestamp` string, date-time
      - `type` string, nullable
      - `code` string, nullable
      - `message` string, nullable
      - `stacktrace` string, nullable

## Other responses

- `422` — Validation Error

## Changes

- **2026-09-20** `7a4b57044657` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/agenta-ai/apis/agenta-api/changes/gateways/llms/endpoints/post.md)

---

[API](https://skmtc.dev/agenta-ai/apis/agenta-api.md) · [All operations](https://skmtc.dev/agenta-ai/apis/agenta-api/llms.txt) · [OpenAPI document](https://skmtc.dev/agenta-ai/apis/agenta-api/revisions/72f2feba8ccb?raw)
