# Get Inference Endpoint Schema

`GET /api/2.0/serving-endpoints/{name}/openapi`

Get the query schema of the serving endpoint in OpenAPI format. The schema contains information for the supported paths, input and output format and datatypes.

API scopes: model-serving

## Path parameters

- `name` (string, optional)
  The name of the serving endpoint that the served model belongs to. This field is required.
  Example: `feed-ads`
  Constraints: `[ 1 .. 63 ] characters`

## Returns

- `contents` (string, optional)

## Response

```json
{
  "contents": "string"
}
```

