# spec

* *Endpoint URL*

  /api/v2/spec

* *HTTP Method*

  GET

* *Description&#x20;*

  Returns the [OpenAPI 3.0](https://swagger.io/specification/) specification for this service.

## Request Parameter

The `GET '/spec'` API call does not take any request parameters.

## Response

| Status Code | Message | Description                                                                             |
| ----------- | ------- | --------------------------------------------------------------------------------------- |
| 200         | OK      | Specifies a successful API call and returns the OpenAPI specification for this service. |

Refer to the [Data API Error Handling](https://docs.singlestore.com/db/v9.1/reference/data-api/data-api-error-handling.md) topic for more Data API Response Status codes.

## Example (cURL)

```shell
curl https://localhost:8080/api/v2/spec

```

> **📝 Note**: If a HTTP method is not specified, curl uses the `GET` method by default.

***

Modified at: May 9, 2023

Source: [/db/v9.1/reference/data-api/data-api-endpoint-reference/spec/](https://docs.singlestore.com/db/v9.1/reference/data-api/data-api-endpoint-reference/spec/)

(An index of the documentation is available at /llms.txt)
