---
title: "Returns the spec's file"
method: GET
path: "/specs/{id}/spec"
tags: ["Informational"]
---

# Returns the spec's file

`GET /specs/{id}/spec`

## Request

- Base URL: `https://demo.ziti.dev/edge/client/v1`
- URL: `https://demo.ziti.dev/edge/client/v1/specs/{id}/spec`
- Auth: none required
- TypeScript: <https://skmtc.dev/openziti/apis/ziti-edge-client/docs/specs/:id/spec/get.ts> (a function with typed inputs; its response is checked against the schema)

Return the body of the specification (i.e. Swagger, OpenAPI 2.0, 3.0, etc).

## Path parameters

- `id` string, required

## Response `200`

Returns the document that represents the specification

- DetailSpecBodyEnvelope
  - `data` string, required
  - `meta` Meta, required
    - `apiEnrollmentVersion` string
    - `apiVersion` string
    - `filterableFields` string[]
    - `pagination` Pagination
      - `limit` number, required
      - `offset` number, required
      - `totalCount` number, required

## Changes

- **2024-05-29** `cce2800c1357`: 1 warning
  - the optional response header `WWW-Authenticate` removed for the status `200`

[Operation history](https://skmtc.dev/openziti/apis/ziti-edge-client/changes/specs/:id/spec/get.md)

---

[API](https://skmtc.dev/openziti/apis/ziti-edge-client.md) - [All operations](https://skmtc.dev/openziti/apis/ziti-edge-client/llms.txt) - [OpenAPI document](https://skmtc.dev/openziti/apis/ziti-edge-client/revisions/f7b51eaafbbb?raw)
