> For the complete documentation index, see [llms.txt](https://docs.guardianservice.app/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.guardianservice.app/technical-information/users/standard-registry-users-schemas-and-policies/schemas/schema-creation-using-apis/returning-schema-by-schemaid.md).

# Returning Schema by SchemaID

## Returns schema by schema ID

<mark style="color:blue;">`GET`</mark> `/schema/{schemaId}`

Returns schema by schema ID

#### Path Parameters

| Name                                       | Type   | Description |
| ------------------------------------------ | ------ | ----------- |
| schemaId<mark style="color:red;">\*</mark> | String | Schema ID   |

{% tabs %}
{% tab title="200: OK Successful Operation" %}

```javascript
{
      content:
            application/json:
              schema:
                  $ref: '#/components/schemas/Schema'
}
```

{% endtab %}

{% tab title="401: Unauthorized Unauthorized" %}

```javascript
{
    // Response
}
```

{% endtab %}

{% tab title="403: Forbidden Forbidden" %}

```javascript
{
    // Response
}
```

{% endtab %}

{% tab title="500: Internal Server Error Internal Server Error" %}

```javascript
{
    content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
}
```

{% endtab %}
{% endtabs %}
