---
title: "GET /anoncreds/schemas/{schemaId}"
method: GET
path: "/anoncreds/schemas/{schemaId}"
tags: ["AnonCreds"]
---

# GET /anoncreds/schemas/{schemaId}

`GET /anoncreds/schemas/{schemaId}`

Retrieve schema by schema id

## Path parameters

- `schemaId` string, required

## Headers

- `x-tenant-id` string

## Response `200`

Ok

- AnonCredsGetSchemaSuccessResponse
  - `schemaId` string, required
  - `schema` AnonCredsSchema, required
    - `issuerId` string, required
    - `name` string, required
    - `version` string, required
    - `attrNames` string[], required
  - `resolutionMetadata` AnyJsonObject, required — JSON object that can contain any key-value pairs
  - `schemaMetadata` AnyJsonObject, required — JSON object that can contain any key-value pairs

## Other responses

- `400` — Invalid schemaId or unknown AnonCreds method provided
- `404` — Schema not found
- `500` — Unknown error retrieving schema

## Changes

- **2026-07-17** `33596742b733` — 2 info
  - the endpoint scheme security `tenants` was removed from the API
  - added the new optional `header` request parameter `x-tenant-id`
- **2024-03-27** `a7641432a6c1` — 1 warning, 1 info
  - deleted the `header` request parameter `x-tenant-id`
  - the endpoint scheme security `tenants` was added to the API

[Change history](https://skmtc.dev/openwallet-foundation/apis/credo-rest-api/changes/anoncreds/schemas/:schemaId/get.md)

---

[API](https://skmtc.dev/openwallet-foundation/apis/credo-rest-api.md) · [All operations](https://skmtc.dev/openwallet-foundation/apis/credo-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/openwallet-foundation/credo-rest-api/revisions/33596742b733/schema)
