> For the complete documentation index, see [llms.txt](https://docs.zkpass.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.zkpass.org/developer-guides/js-sdk/schema/quick-start-for-creating-custom-schema.md).

# Quick Start for Creating Custom Schema

### Login zkPass dev center and create custom schema

***

Login in [zkPass dev center](https://dev.zkpass.org), create a project and add a schema.

<figure><img src="https://2216484837-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FC2Jh1oquOpJPfwzD3x9L%2Fuploads%2Fb3yFsgic8djqey20zeyC%2Fimage.png?alt=media&amp;token=802d3cf6-4f76-48f5-834a-8f359da77a62" alt="" width="375"><figcaption></figcaption></figure>

Click on "Add Custom Schema". If you haven't installed the [zkPass Schema Validator](https://chromewebstore.google.com/detail/kpcbjghknfclbkejkdllpjhhheppaoca), please click "install" to install the extension first.

<figure><img src="https://2216484837-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FC2Jh1oquOpJPfwzD3x9L%2Fuploads%2F3cXkIiFj7NBnlpixSkwq%2Fimage.png?alt=media&amp;token=b0089b24-5fe5-408e-9557-6d0978d685d5" alt="" width="375"><figcaption></figcaption></figure>

Enter the schema name, select the category, paste your custom schema into the JSON schema field, and then click "Check Schema." The website specified in your schema JSON will be opened.

<figure><img src="https://2216484837-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FC2Jh1oquOpJPfwzD3x9L%2Fuploads%2FIwYGXZ8pbi2XP9lfU8Bf%2Fimage.png?alt=media&amp;token=69ae90f5-d5d0-4133-ab9f-c93162db4c27" alt="" width="375"><figcaption></figcaption></figure>

If the schema validation is successful, you will observe the 'Check Pass' button at the bottom.

<figure><img src="https://2216484837-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FC2Jh1oquOpJPfwzD3x9L%2Fuploads%2FzhvYCW4ye0i74OmMbE8v%2Fimage.png?alt=media&amp;token=86f0bb54-b4d9-42e0-8dca-ac40cb1aec2b" alt="" width="375"><figcaption></figcaption></figure>

Upon clicking the 'Check Pass' button, you will be redirected back to the [zkPass dev center](https://dev.zkpass.org) and presented with a success modal. Then, you can submit your schema.

<figure><img src="https://2216484837-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FC2Jh1oquOpJPfwzD3x9L%2Fuploads%2Fg8k7NZ4hMt3Z9kNBWmyg%2Fimage.png?alt=media&amp;token=2825538d-b828-444b-af4f-f00e2a5481d5" alt="" width="375"><figcaption></figcaption></figure>

Congratulations, you have successfully generated the schema. You can now seamlessly integrate it into your project.

<figure><img src="https://2216484837-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FC2Jh1oquOpJPfwzD3x9L%2Fuploads%2FULXEPVsLgNMi0apRZLKX%2Fimage.png?alt=media&amp;token=0d7b0046-655c-43a5-a355-9eefb5b0bad4" alt="" width="375"><figcaption></figcaption></figure>

If the schema validation is failed, you will observe the 'Check Error Message' button at the bottom.

<figure><img src="https://2216484837-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FC2Jh1oquOpJPfwzD3x9L%2Fuploads%2FbmxFhfcdmgX5D7XfSYFM%2Fimage.png?alt=media&amp;token=703deafa-12d8-45ae-8fe3-742c1141828f" alt="" width="375"><figcaption></figcaption></figure>

Upon clicking the 'Check Error Message' button, you will be redirected back to the [zkPass dev center](https://dev.zkpass.org) and presented with a error modal. Then, you can correct your schema based on error messages.

<figure><img src="https://2216484837-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FC2Jh1oquOpJPfwzD3x9L%2Fuploads%2FIpsEVFvWdPXXotDWsLpC%2Fimage.png?alt=media&amp;token=64ed4f94-b29f-465f-a5b2-adcad6e0e58a" alt="" width="375"><figcaption></figcaption></figure>

### Tips for writing a schema json file on Chrome

***

Open the website you are targeting, navigate to the page containing the desired information, right-click on the page, and choose "inspect."

<figure><img src="https://2216484837-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FC2Jh1oquOpJPfwzD3x9L%2Fuploads%2FF37FhEIp9hlfMYR2PLA4%2Fimage.png?alt=media&amp;token=42ce0e96-8be4-4102-bb5d-5941fd3ffe28" alt="" width="375"><figcaption></figcaption></figure>

Select the "Network" tab, then refresh the page to capture all the HTTP requests. You can use the "Fetch/XHR" tag to filter the RESTful APIs.

<figure><img src="https://2216484837-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FC2Jh1oquOpJPfwzD3x9L%2Fuploads%2F0aGN5LHH2rK72JXFBFyp%2Fimage.png?alt=media&amp;token=0d735f70-cd16-4e8c-9dad-1c6ac93875be" alt="" width="375"><figcaption></figcaption></figure>

Locate the APIs that provide the desired information. Click on each of them, then click "Headers" tabs to review the request details to identify the **host** and **intercept** for the schema.

<figure><img src="https://2216484837-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FC2Jh1oquOpJPfwzD3x9L%2Fuploads%2FzMNHuU464muvCRdeSMWp%2Fimage.png?alt=media&amp;token=fcbd9ece-a5f0-48f4-a469-c1f2d85cba26" alt="" width="375"><figcaption></figcaption></figure>

Click "Preview" tag to review the response details to identify the **assert** and **nullifier** for the schema.

<figure><img src="https://2216484837-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FC2Jh1oquOpJPfwzD3x9L%2Fuploads%2FoT8VXFhSnV7u1U2vq5rD%2Fimage.png?alt=media&amp;token=e4ca4d53-a970-40fd-8fc2-782ccf8254f5" alt="" width="375"><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.zkpass.org/developer-guides/js-sdk/schema/quick-start-for-creating-custom-schema.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
