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

# Get version certificate

#### **End Point** <a href="#end-point" id="end-point"></a>

```javascript
{{base_url}}/get-version/{{versionId}}/certificate
```

#### **API Description** <a href="#api-description" id="api-description"></a>

This API endpoint, accessible through the specified URL, facilitates the retrieval of a download link for the PDF file corresponding to the certificate associated with a specific version identified by `<version_id>`.

```javascript
/get-version/<version_id>/certificate
```

**Usage Notes:**

* The provided link directs users to download the PDF file encapsulating the certificate details.
* It is crucial to acknowledge that the download link holds validity for a limited duration, precisely 60 seconds. Users are advised to promptly utilize the link to ensure timely access to the certificate.

By utilizing this API, users can seamlessly access the certificate file in PDF format, contributing to a secure and time-sensitive certification retrieval process.

**Method**

POST&#x20;

#### **Attributes** <a href="#api-body" id="api-body"></a>

<table><thead><tr><th width="176">Attribute</th><th width="101">Type</th><th>Description</th></tr></thead><tbody><tr><td><strong>status</strong></td><td>Integer</td><td>The HTTP status code indicating the success or failure of the request.</td></tr><tr><td><strong>message</strong></td><td>String</td><td>A message providing additional information about the status of the request.</td></tr><tr><td><strong>result</strong></td><td>Array of Objects</td><td>Contains an array of objects with information about the submitted file(s).</td></tr><tr><td><strong>result.certificateLink</strong></td><td>String</td><td>The link to the certificate. It is a URL pointing to the location of the certificate file.</td></tr></tbody></table>

#### Request <a href="#sample-request" id="sample-request"></a>

```javascript
curl --location -g --request POST '{{base_url}}/get-version/76233ed6-b9d0-46b5-bd4c-5cda20d7c622/certificate' \
--header 'Authorization: SECRET {{secret_key}}'
```

#### Response <a href="#sample-response-success-response" id="sample-response-success-response"></a>

```javascript
{
  "status": 201,
  "message": "success",
  "result": {
    "certificateLink": "https://myipr.s3.amazonaws.com/Bvarsha2.1/Myipr-certificate-Bvarsha2.1_1260ac.pdf?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAV6B6R4UDILBTLQZ5%2F20231124%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20231124T055900Z&X-Amz-Expires=60&X-Amz-Signature=3c7f17f2571474ae128bde67d2b3fc3172971e1930fa02da5ca764f36aa033b4&X-Amz-SignedHeaders=host&response-content-disposition=attachment"
  }
}
```


---

# 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.myipr.io/myipr-open-api/api-guides/api-reference/get-version-certificate.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
