# Get a schema

`GET https://api.agilitycredit.net/scim/v2/{tenantId}/Schemas/{schemaId}`

Docs page: https://apidocs.agilitycredit.com/sso/scim-api/get-schema · Tag: Discovery

Fetch the live definition of a single SCIM schema. Use the canonical schema URI
as the path parameter:
`urn:ietf:params:scim:schemas:core:2.0:User` or
`urn:ietf:params:scim:schemas:core:2.0:Group`.

Authentication: `Authorization: Bearer <api key>`.

## Parameters

| Name | In | Required | Description |
| --- | --- | --- | --- |
| `schemaId` | path | yes | The canonical SCIM schema URI. |

## Responses

| Status | Description | Body |
| --- | --- | --- |
| 200 | The requested schema | Schema |
| 404 | Resource not found. | Error |
| 503 | SCIM provisioning is disabled on the tenant. | Error |

### Error bodies

404:

```json
{
  "schemas": [
    "urn:ietf:params:scim:api:messages:2.0:Error"
  ],
  "status": "404",
  "detail": "User not found"
}
```

503:

```json
{
  "schemas": [
    "urn:ietf:params:scim:api:messages:2.0:Error"
  ],
  "status": "503",
  "detail": "SCIM provisioning is disabled for this tenant"
}
```
