# Issue a Verifiable Presentation

## !!! WARN. Such endpoint is made mostly for testing purposes and it is not supposed to be used in production !!! Create a Verifiable Presentation from credential(s).

> This endpoint creates a Verifiable Presentation from credential(s). As input, it can take the credential(s) as a string or the entire credential(s) itself. \
> &#x20;!!! WARN. Such endpoint is made only for testing purposes !!!

```json
{"openapi":"3.0.0","info":{"title":"cheqd Studio API for cheqd network","version":"2.0.0"},"tags":[{"name":"Verifiable Presentations"}],"servers":[{"url":"https://studio-api.cheqd.net","description":"Main (production) server"},{"url":"https://studio-api-staging.cheqd.net","description":"Staging server for testing"},{"url":"http://localhost:3000","description":"Local server for testing"}],"security":[{"ApiKeyAuth":[]}],"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","name":"x-api-key","in":"header"}},"schemas":{"PresentationCreateRequest":{"type":"object","required":["credentials"],"properties":{"credentials":{"description":"Verifiable Credentials to be used for VP-JWT creation as a VP-JWT strings or a JSON objectsf.","type":"array","items":{"type":"object"}},"holderDid":{"description":"DID of holder","type":"string"},"verifierDid":{"description":"DID of verifier","type":"string"}}},"PresentationCreateResult":{"type":"object","properties":{"vp":{"type":"object","description":"Verifiable Presentation which could be provided to the verifier."},"nbf":{"type":"integer","description":"Unix timestamp of the earliest time that the Verifiable Presentation is valid."},"iss":{"type":"string","description":"DID of the issuer of the Verifiable Presentation. (Here it's supposed to be a holder DID)"},"aud":{"type":"array","items":{"type":"string"},"description":"DID of the verifier of the Verifiable Presentation."}}},"InvalidRequest":{"description":"A problem with the input fields has occurred. Additional state information plus metadata may be available in the response body.","type":"object","properties":{"error":{"type":"string"}}},"UnauthorizedError":{"description":"Access token is missing or invalid","type":"object","properties":{"error":{"type":"string"}}},"InternalError":{"description":"An internal error has occurred. Additional state information plus metadata may be available in the response body.","type":"object","properties":{"error":{"type":"string"}}}}},"paths":{"/presentation/create":{"post":{"tags":["Verifiable Presentations"],"summary":"!!! WARN. Such endpoint is made mostly for testing purposes and it is not supposed to be used in production !!! Create a Verifiable Presentation from credential(s).","description":"This endpoint creates a Verifiable Presentation from credential(s). As input, it can take the credential(s) as a string or the entire credential(s) itself. \n !!! WARN. Such endpoint is made only for testing purposes !!!","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/PresentationCreateRequest"}},"application/json":{"schema":{"$ref":"#/components/schemas/PresentationCreateRequest"}}}},"responses":{"200":{"description":"The request was successful.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PresentationCreateResult"}}}},"400":{"$ref":"#/components/schemas/InvalidRequest"},"401":{"$ref":"#/components/schemas/UnauthorizedError"},"500":{"$ref":"#/components/schemas/InternalError"}}}}}}
```


---

# 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.cheqd.io/product/api-reference/presentations/issue.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.
