Share
Create a short-lived share link for the current instance.
Stores a validated relative application route for seven days without bypassing authentication or resource permissions.
POST
/
api
/
v1
/
share
Create a short-lived share link for the current instance.
curl --request POST \
--url https://api.revoengine.com/api/v1/share \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"url": "/instance-id/resources/databases?v=2&f.status=ACTIVE"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({url: '/instance-id/resources/databases?v=2&f.status=ACTIVE'})
};
fetch('https://api.revoengine.com/api/v1/share', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.revoengine.com/api/v1/share"
payload = { "url": "/instance-id/resources/databases?v=2&f.status=ACTIVE" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"id": "V1StGXR8_Z5j"
}Authorizations
Bearer JWT token or API Key (sk-*).
Body
application/json
Relative RevoEngine route for the current instance, including supported grid filters.
Maximum string length:
8192Example:
"/instance-id/resources/databases?v=2&f.status=ACTIVE"
Response
201 - application/json
Short-lived share identifier.
Required string length:
12Example:
"V1StGXR8_Z5j"
⌘I
Create a short-lived share link for the current instance.
curl --request POST \
--url https://api.revoengine.com/api/v1/share \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"url": "/instance-id/resources/databases?v=2&f.status=ACTIVE"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({url: '/instance-id/resources/databases?v=2&f.status=ACTIVE'})
};
fetch('https://api.revoengine.com/api/v1/share', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.revoengine.com/api/v1/share"
payload = { "url": "/instance-id/resources/databases?v=2&f.status=ACTIVE" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"id": "V1StGXR8_Z5j"
}
