Get a URL for a protected server
curl --request POST \
--url https://api.arg.ai/api/tunnels/{tunnelId}/access-url \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{}'import requests
url = "https://api.arg.ai/api/tunnels/{tunnelId}/access-url"
payload = {}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({})
};
fetch('https://api.arg.ai/api/tunnels/{tunnelId}/access-url', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{}{
"detail": "<string>"
}Servers
Get a URL for a protected server
Mint a short-lived URL for a server that is not public, for the caller to open or embed. A public server needs no minting - use its own URL.
POST
/
api
/
tunnels
/
{tunnelId}
/
access-url
Get a URL for a protected server
curl --request POST \
--url https://api.arg.ai/api/tunnels/{tunnelId}/access-url \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{}'import requests
url = "https://api.arg.ai/api/tunnels/{tunnelId}/access-url"
payload = {}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({})
};
fetch('https://api.arg.ai/api/tunnels/{tunnelId}/access-url', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{}{
"detail": "<string>"
}Authorizations
bearerAuthapiKeyAuth
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Body
application/json
How the URL will be opened.
Available options:
top-level, embed Response
Successful response
The response is of type object.