> ## Documentation Index
> Fetch the complete documentation index at: https://docs.akapulu.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Endpoint

> Fetch an HTTP endpoint (owner only).

Fetch an HTTP endpoint you own, including `headers` and `body` templates.


## OpenAPI

````yaml openapi/akapulu.json GET /endpoints/{endpoint_id}
openapi: 3.1.0
info:
  title: Akapulu Labs API
  version: 1.0.0
  description: Public Akapulu Labs API reference.
servers:
  - url: https://akapulu.com/api
security:
  - bearerAuth: []
paths:
  /endpoints/{endpoint_id}:
    get:
      tags:
        - Endpoints
      summary: Get endpoint
      description: Fetch an HTTP endpoint (owner only).
      parameters:
        - name: endpoint_id
          in: path
          required: true
          description: Endpoint ID.
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: Endpoint fetched successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EndpointDetailResponse'
              examples:
                success:
                  value:
                    id: 22222222-3333-4444-5555-666666666666
                    name: Book Appointment
                    url: https://api.yourcompany.com/v1/book-appointment
                    headers:
                      Authorization: Bearer {{secret.crm_token}}
                    body:
                      patient_id: '{{runtime.patient_id}}'
        '400':
          description: Invalid request payload
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
              examples:
                default:
                  value:
                    error: endpoint_id is required
        '401':
          description: Missing or invalid API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
              examples:
                invalid_key:
                  value:
                    error: Invalid API key
        '404':
          description: Endpoint not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
              examples:
                default:
                  value:
                    error: HttpEndpoint not found
components:
  schemas:
    EndpointDetailResponse:
      type: object
      required:
        - id
        - name
        - url
        - headers
        - body
      properties:
        id:
          type: string
          format: uuid
        name:
          type: string
        url:
          type: string
        headers:
          type: object
          additionalProperties: true
        body:
          type: object
          additionalProperties: true
    ApiError:
      type: object
      required:
        - error
      properties:
        error:
          type: string
          description: Human-readable error message.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````