---
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

---

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