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