# Create a schema

### Set up a credential schema <a href="#h_0bf8dff5dc" id="h_0bf8dff5dc"></a>

Select **Schemas** and click **Create schema**

<figure><img src="/files/hT92QJvS98muf0PJSE0Q" alt=""><figcaption></figcaption></figure>

Add a name for the schema and a description.

<figure><img src="/files/F4qnKi0yudXXBgG8Rudp" alt=""><figcaption></figcaption></figure>

In Credential attributes, add the type of data you want to appear on the schema. You can do this in two ways:

a) By manually setting up the information you want to appear

b) Importing an existing credential template from another source

<figure><img src="https://downloads.intercomcdn.com/i/o/800461315/65abc4192bd133c968fbfc43/6431f2898c76935202fe74db_3-custom+verifiable+credential+attributes.jpeg" alt="" width="375"><figcaption></figcaption></figure>

### Manually add credential attributes <a href="#h_faa71c7067" id="h_faa71c7067"></a>

Click **Create manually**.

![](https://downloads.intercomcdn.com/i/o/800464123/6f1b15f7e4f0ca019984f74b/6431f2bf08ce44742be1746a_4-custom+verifiable+credential+create+manually.png)

You can choose what format the field will appear in and which fields are required or optional.

<figure><img src="https://downloads.intercomcdn.com/i/o/800465718/1df8901096f862edc15e7992/6431f40b5544d794d95d68d2_6-custom+verifiable+credential+drop+down.png" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
You don’t need to add an Issue Date and Expiry Date field because these fields will automatically appear on all templates.
{% endhint %}

Once you’ve added all the fields, click **Publish**. All credential schemas will be listed on this page when you select Schemas from the menu.

<figure><img src="/files/drkghIq2tpxIx1k8x5HG" alt=""><figcaption></figcaption></figure>

You can also see your new credential templates added to the pre-built templates. So whenever you issue a credential, you will be able to choose a template from this list.

<figure><img src="/files/RPUhxcNn2HNQnOA7Ix4i" alt=""><figcaption></figcaption></figure>

Click the Actions menu and select **Preview** to see the attributes that are included in the credential schema or Duplicate to edit the schema.

<figure><img src="/files/KHWoFMmuxifdaMtFUsK2" alt=""><figcaption></figcaption></figure>

The **Issue Date** and **Expiration Date** are default attributes that will appear on every template if you create the template manually.

![](/files/RGAN6B9na87kGRVgCq95)

### Add credential attributes by importing an existing credential schema <a href="#h_b163952b0c" id="h_b163952b0c"></a>

You can import an existing credential schema into Truvera.

{% hint style="success" %}
This feature is very useful when needing to move schemas from test mode into production.
{% endhint %}

Paste the schema URL or JSON in the Schema Import pop up and select Import Schema

![](/files/lzSQvw5AqqJLT8HtkTtp)

Double check to make sure that the correct data format is selected for each data field. Add or remove the fields as necessary and select Publish once ready.

### Edit a credential schema <a href="#h_4521818d05" id="h_4521818d05"></a>

Go to the schema you want to edit, click on the three dots, and select Duplicate.

<figure><img src="/files/ZEy4WKTh2LWruH90vpQO" alt=""><figcaption></figcaption></figure>

Update the schema Name so you can tell the difference between this updated version and the original one. Once you’ve made all of your edits, go to the top of the page and select Publish.

### View a credential schema <a href="#h_7b90f5840a" id="h_7b90f5840a"></a>

To see the attributes included in a particular schema your can click on the three dots of the credential you want to view, and click **View schema**.

<figure><img src="/files/ZEy4WKTh2LWruH90vpQO" alt=""><figcaption></figcaption></figure>

### Delete a credential schema <a href="#h_b89d37d495" id="h_b89d37d495"></a>

Go to Schemas, click on the three dots of the schema you want to delete, and click **Delete schema**.

<figure><img src="/files/ZEy4WKTh2LWruH90vpQO" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.truvera.io/truvera-workspace/create-a-schema.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
