Relays
Create a Relay Session
Create a relay session with users.
post/v1/relays/sessions
Request
- Base URL: https://api.edgegap.com
- URL: https://api.edgegap.com/v1/relays/sessions
- Auth: API key in header authorization
Request body
Example request
{
"users": [
{
"ip": "1.1.1.1"
}
],
"filters": [
{
"field": "location",
"values": [
"US"
],
"filter_type": "any"
}
],
"webhook_url": "https://my-webhook.com/dump"
}Response
Success
Example response
{
"session_id": "7349356945f1-S",
"authorization_token": 3500589645,
"status": "READY",
"error": "Session failed",
"session_users": [
{
"ip_address": "1.1.1.1",
"latitude": 45.5088,
"longitude": -73.5878,
"authorization_token": 21986334
}
],
"relay": {
"ip": "2.2.2.2",
"host": "7349356945f1.st.edgegap.net",
"ports": {
"server": {
"port": 32000,
"protocol": "UDP",
"link": "7349356945f1.st.edgegap.net:32000"
},
"client": {
"port": 32001,
"protocol": "UDP",
"link": "7349356945f1.st.edgegap.net:32001"
}
}
},
"webhook_url": "https://my-webhook.com/dump"
}Changes
No recorded changes to this operation across all 1 revision of this API.