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

# Returns the spec's file

`GET /specs/{id}/spec`

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

---

[API](https://skmtc.net/openziti/apis/ziti-edge-client.md) · [All operations](https://skmtc.net/openziti/apis/ziti-edge-client/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/openziti/ziti-edge-client/revisions/25da9a73a095/schema)
