> For the complete documentation index, see [llms.txt](https://docs.truvera.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.truvera.io/truvera-api/openid.md).

# OpenID

OpenID issuance is the best way to go, when you need to send the credential to the holder using a deeplink or QR code.

OpenID issuer endpoint should not be confused with the credential Issuer as it is in the Truvera platform. With OpenID creating an OpenID issuer is the first step of credential issuance and will need to be done for each individual credential.

{% hint style="warning" %}
**Note:** Credential offers created with `"singleUse": false` are not subject to automatic deletion by the retention policy. Because these offers are designed for repeated use, they persist indefinitely until manually deleted. If you want offers to be cleaned up automatically, set `"singleUse": true`.
{% endhint %}

{% openapi src="/files/JRr1pCTFHx76mpRDdFlL" path="/openid/issuers" method="post" %}
[updated\_openapi.yaml](https://815575130-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWRMhdRsPkUzlSqCYzbgF%2Fuploads%2Fgit-blob-275cf229de21c78eb08b2b9375323ab201e4ea6e%2Fupdated_openapi.yaml?alt=media)
{% endopenapi %}

### Credential offers

Generate credential offers to initiate the issuance process. Credential offers can be shared with the holder to claim the credential. This endpoint creates a credential offer linked to the OpenID issuer.

{% openapi src="/files/JRr1pCTFHx76mpRDdFlL" path="/openid/credential-offers" method="post" %}
[updated\_openapi.yaml](https://815575130-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWRMhdRsPkUzlSqCYzbgF%2Fuploads%2Fgit-blob-275cf229de21c78eb08b2b9375323ab201e4ea6e%2Fupdated_openapi.yaml?alt=media)
{% endopenapi %}

{% openapi src="/files/JRr1pCTFHx76mpRDdFlL" path="/openid/issuers" method="get" %}
[updated\_openapi.yaml](https://815575130-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWRMhdRsPkUzlSqCYzbgF%2Fuploads%2Fgit-blob-275cf229de21c78eb08b2b9375323ab201e4ea6e%2Fupdated_openapi.yaml?alt=media)
{% endopenapi %}

{% openapi src="/files/JRr1pCTFHx76mpRDdFlL" path="/openid/issuers/{id}" method="get" %}
[updated\_openapi.yaml](https://815575130-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWRMhdRsPkUzlSqCYzbgF%2Fuploads%2Fgit-blob-275cf229de21c78eb08b2b9375323ab201e4ea6e%2Fupdated_openapi.yaml?alt=media)
{% endopenapi %}

{% openapi src="/files/JRr1pCTFHx76mpRDdFlL" path="/openid/issuers/{id}" method="delete" %}
[updated\_openapi.yaml](https://815575130-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWRMhdRsPkUzlSqCYzbgF%2Fuploads%2Fgit-blob-275cf229de21c78eb08b2b9375323ab201e4ea6e%2Fupdated_openapi.yaml?alt=media)
{% endopenapi %}

{% openapi src="/files/JRr1pCTFHx76mpRDdFlL" path="/openid/vp/{id}/request" method="get" %}
[updated\_openapi.yaml](https://815575130-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWRMhdRsPkUzlSqCYzbgF%2Fuploads%2Fgit-blob-275cf229de21c78eb08b2b9375323ab201e4ea6e%2Fupdated_openapi.yaml?alt=media)
{% endopenapi %}

{% openapi src="/files/JRr1pCTFHx76mpRDdFlL" path="/openid/vp/{id}/request-url" method="post" %}
[updated\_openapi.yaml](https://815575130-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWRMhdRsPkUzlSqCYzbgF%2Fuploads%2Fgit-blob-275cf229de21c78eb08b2b9375323ab201e4ea6e%2Fupdated_openapi.yaml?alt=media)
{% endopenapi %}


---

# 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.truvera.io/truvera-api/openid.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.
