Get router by id
curl --request GET \
--url https://api.routera.io/routers/{routerId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.routera.io/routers/{routerId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.routera.io/routers/{routerId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.routera.io/routers/{routerId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.routera.io/routers/{routerId}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.routera.io/routers/{routerId}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.routera.io/routers/{routerId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"id": "550e8400-e29b-41d4-a716-446655440000",
"name": "Contact Router",
"object_type": "contacts",
"has_integration": true,
"is_published": true,
"archived": false,
"created_at": "2026-05-01T10:00:00.000Z",
"updated_at": "2026-05-28T12:00:00.000Z",
"settings": {
"overwrite": true,
"owner_field": "contact_owner",
"distribution_model": "round robin",
"default_user": "developer@test.com",
"disable_default_assignment": false,
"ignore_working_hours": true,
"account_matching": true,
"trigger": {
"groups": [
{
"conditions": []
}
]
}
},
"users": [
{
"email": "user@example.com"
}
],
"teams": [
{
"name": "Sales Team"
}
]
}{
"message": "<string>",
"error": true,
"field": "<string>"
}{
"message": "<string>",
"error": true,
"field": "<string>"
}{
"message": "<string>",
"error": true,
"field": "<string>"
}{
"message": "<string>",
"error": true,
"field": "<string>"
}Routers
Get router
GET /routers/ — retrieve a single router
GET
/
routers
/
{routerId}
Get router by id
curl --request GET \
--url https://api.routera.io/routers/{routerId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.routera.io/routers/{routerId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.routera.io/routers/{routerId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.routera.io/routers/{routerId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.routera.io/routers/{routerId}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.routera.io/routers/{routerId}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.routera.io/routers/{routerId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"id": "550e8400-e29b-41d4-a716-446655440000",
"name": "Contact Router",
"object_type": "contacts",
"has_integration": true,
"is_published": true,
"archived": false,
"created_at": "2026-05-01T10:00:00.000Z",
"updated_at": "2026-05-28T12:00:00.000Z",
"settings": {
"overwrite": true,
"owner_field": "contact_owner",
"distribution_model": "round robin",
"default_user": "developer@test.com",
"disable_default_assignment": false,
"ignore_working_hours": true,
"account_matching": true,
"trigger": {
"groups": [
{
"conditions": []
}
]
}
},
"users": [
{
"email": "user@example.com"
}
],
"teams": [
{
"name": "Sales Team"
}
]
}{
"message": "<string>",
"error": true,
"field": "<string>"
}{
"message": "<string>",
"error": true,
"field": "<string>"
}{
"message": "<string>",
"error": true,
"field": "<string>"
}{
"message": "<string>",
"error": true,
"field": "<string>"
}Endpoint
GET https://api.routera.io/routers/{routerId}
/routers/{routerId}Authentication: Bearer JWT
Path parameters
| Parameter | Required | Description |
|---|---|---|
routerId | Yes | Router UUID |
Response
200 — Router object (same shape as list items){
"id": "550e8400-e29b-41d4-a716-446655440000",
"name": "Contact Router",
"object_type": "contacts",
"has_integration": true,
"is_published": true,
"archived": false,
"created_at": "2026-05-01T10:00:00.000Z",
"updated_at": "2026-05-28T12:00:00.000Z",
"settings": {
"overwrite": true,
"owner_field": "contact_owner",
"distribution_model": "round robin",
"default_user": "developer@test.com",
"disable_default_assignment": false,
"ignore_working_hours": true,
"account_matching": true,
"trigger": {
"groups": [
{
"conditions": []
}
]
}
},
"users": [
{
"email": "user@example.com"
}
],
"teams": [
{
"name": "Sales Team"
}
]
}
Settings mapping
| Setting key | API value |
|---|---|
overwrite | boolean |
owner_field | field internal name string |
distribution_model | "round robin" or "percentage" |
default_user | backup user email |
disable_default_assignment | boolean |
ignore_working_hours | boolean |
account_matching | boolean |
rotation_type | string |
trigger | JSON object (only setting returned as JSON) |
Errors
| Status | When |
|---|---|
400 | Invalid or missing routerId (not a UUID) |
401 | Missing or invalid account context in JWT |
404 | Router not found for this account |
500 | Internal server error |
Authorizations
Bearer JWT with valid account context.
Path Parameters
Object identifier
Response
Router
Router configuration with flattened settings. Only trigger may be a JSON object.
false when active, or ISO timestamp when archived
Present when archived
Flattened settings keyed by setting_id (overwrite, owner_field, distribution_model, etc.)
Was this page helpful?
⌘I
