---
updatedAt: 2026-03-01T18:37:25.000Z
agentTools:
  siteIndex: https://techdocs.akamai.com/llms.txt
  projectIndex: https://techdocs.akamai.com/property-mgr/llms.txt
---

# Get the latest property version

```curl cURL
propertyId="prp_175780"
activatedOn="STAGING"
contractId="ctr_1-1TJZFW"
groupId="grp_15166"

egcurl --eg-section default --request GET \

  --url "https://$hostname/papi/v1/properties/$propertyId/versions/latest?activatedOn=$activatedOn&contractId=$contractId&groupId=$groupId" \
  --header "Accept: application/json"
  --header "PAPI-Use-Prefixes: true"
```

```node Node
const EdgeGrid = require("akamai-edgegrid");
const os = require("os");
const edgercPath = os.homedir + "/.edgerc.txt";
const edgercSection = "default";  
const eg = new EdgeGrid({
  path: edgercPath,
  section: edgercSection
});   

const propertyId = "prp_175780";

eg.auth({
  path: `/papi/v1/properties/${propertyId}/versions/latest`,
  method: "GET",
  headers: {
    
    "Accept": "application/json",
    "PAPI-Use-Prefixes": "true"},
  qs: {
    "activatedOn": "STAGING",
    "contractId": "ctr_1-1TJZFW",
    "groupId": "grp_15166"
}                    
});
eg.send(function(error, response, body) {
  console.log(body);    
});
```

```python Python
import requests
from akamai.edgegrid import EdgeGridAuth, EdgeRc
from urlparse import urljoin

edgerc = EdgeRc('~/.edgerc.txt')
section = 'default'
baseurl = 'https://%s' % edgerc.get(section, 'host')

session = requests.Session()
session.auth = EdgeGridAuth.from_edgerc(edgerc, section)
propertyId = "prp_175780"
 

path= '/papi/v1/properties/{}/versions/latest'.format(propertyId)
headers = {
  
  "Accept": "application/json",
  "PAPI-Use-Prefixes": "true"
} 
querystring = {
  "activatedOn": "STAGING",
  "contractId": "ctr_1-1TJZFW",
  "groupId": "grp_15166"
}  

result = session.get(urljoin(baseurl, path), headers=headers, params=querystring)
print(result.status_code)
print(result.json())  
```

```json Response Example
{
    "versionLink": "/papi/v1/properties/prp_173136/versions/2?contractId=ctr_1-1TJZH5&groupId=grp_15225"
}
```

# Set up authentication

<!-- curl@6 -->
<!-- node@1-8 -->
<!-- python@1-10 -->

If you haven't already, you need to [create your authentication credentials](https://techdocs.akamai.com/developer/docs/set-up-authentication-credentials) in an API client in Control Center. Set up the API client with:

* Access to the Property Manager API (PAPI).
* PAPI's access level set to READ-WRITE.

Then, you can include this code to apply the token values to validate your requests.

# Form the request URL

<!-- curl@8 -->
<!-- node@13 -->
<!-- python@14 -->

Specify the target endpoint.

# Set the propertyId

<!-- curl@1 -->
<!-- node@10 -->
<!-- python@11 -->

To get this value, you can run the [list properties](https://techdocs.akamai.com/property-mgr/reference/get-properties) operation, locate the applicable property, and store its `propertyId` for use here.

# Set your headers

<!-- curl@9-10 -->
<!-- node@15-18 -->
<!-- python@15-19 -->

Include these headers:

* `Accept: application/json`
* `PAPI-Use-Prefixes`. This sets whether to represent ID prefixes in response data. Set to `false` when exchanging PAPI data with other APIs. Set it to `true` here because we're working in PAPI.

# Set your query string parameters

<!-- curl@2-4 -->
<!-- node@19-23 -->
<!-- python@20-24 -->

This request requires these query string parameters:

* `activatedOn`. Optionally include this to return the latest version activated on the given ​Akamai​ network, either `STAGING` or `PRODUCTION`.
* `contractId`. You can run the [list contracts](https://techdocs.akamai.com/property-mgr/reference/get-contracts) operation to get this value.
* `groupId`. You can run the [list groups](https://techdocs.akamai.com/property-mgr/reference/get-groups) operation to get this value.

# Call the API

<!-- curl@1-1000 -->
<!-- node@1-1000 -->
<!-- python@1-1000 -->

Call GET on the request URL.

# View the response

<!-- curl@0 -->
<!-- node@0 -->
<!-- python@0 -->

The response object lists the `propertyLink`. You can use this in a URL to poll the API and get the the latest activated property version, or the highest version if not activated yet.