# 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"}}}}}}
```
