Sessions
Create a Session
Create a session with users. Sessions are linked to a deployment.
post/v1/session
Request
- Base URL: https://api.edgegap.com
- URL: https://api.edgegap.com/v1/session
- Auth: API key in header authorization
Request body
Example request
{
"app_name": "demo",
"version_name": "v1.0",
"ip_list": [
"1.1.1.1"
],
"geo_ip_list": [
{
"ip": "1.2.3.4"
}
],
"deployment_request_id": "c0653765de3b",
"location": {
"latitude": 45.5,
"longitude": -73.56
},
"city": "Montreal",
"country": "Canada",
"continent": "North America",
"administrative_division": "Quebec",
"region": "North America",
"selectors": [
{
"tag": "tag",
"env": {
"key": "KEY",
"value": "VALUE"
}
}
],
"webhook_url": "https://webhook.com",
"filters": [
{
"field": "city",
"values": [
"Montreal"
],
"filter_type": "any"
}
]
}Response
Success
Example response
{
"session_id": "abc123-s",
"custom_id": "custom-abc123",
"app": "demo",
"version": "v1.0",
"selectors": [
{
"tag": "tag",
"env": {
"key": "KEY",
"value": "VALUE"
}
}
]
}Changes
No recorded changes to this operation across all 1 revision of this API.