Create Linear route
curl --request POST \
--url https://api.runaether.dev/orgs/{orgID}/linear/routes \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"aether_project_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"enabled": true,
"linear_team_id": "<string>",
"agent_profile_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"linear_project_id": "<string>"
}
'import requests
url = "https://api.runaether.dev/orgs/{orgID}/linear/routes"
payload = {
"aether_project_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"enabled": True,
"linear_team_id": "<string>",
"agent_profile_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"linear_project_id": "<string>"
}
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({
aether_project_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
enabled: true,
linear_team_id: '<string>',
agent_profile_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
linear_project_id: '<string>'
})
};
fetch('https://api.runaether.dev/orgs/{orgID}/linear/routes', 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.runaether.dev/orgs/{orgID}/linear/routes",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'aether_project_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'enabled' => true,
'linear_team_id' => '<string>',
'agent_profile_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'linear_project_id' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.runaether.dev/orgs/{orgID}/linear/routes"
payload := strings.NewReader("{\n \"aether_project_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"enabled\": true,\n \"linear_team_id\": \"<string>\",\n \"agent_profile_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"linear_project_id\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.runaether.dev/orgs/{orgID}/linear/routes")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"aether_project_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"enabled\": true,\n \"linear_team_id\": \"<string>\",\n \"agent_profile_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"linear_project_id\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.runaether.dev/orgs/{orgID}/linear/routes")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"aether_project_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"enabled\": true,\n \"linear_team_id\": \"<string>\",\n \"agent_profile_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"linear_project_id\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"aether_project_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"agent_profile_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"enabled": true,
"linear_project_id": "<string>",
"linear_project_name": "<string>",
"linear_team_id": "<string>",
"linear_team_key": "<string>",
"linear_team_name": "<string>",
"route_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"code": "agent_profile_not_found",
"error": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
]
}{
"code": "agent_profile_not_found",
"error": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
]
}{
"code": "org_membership_required",
"error": "<string>"
}{
"code": "agent_profile_not_found",
"error": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
]
}{
"code": "agent_profile_not_found",
"error": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
]
}{
"code": "agent_profile_not_found",
"error": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
]
}{
"code": "agent_profile_not_found",
"error": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
]
}{
"code": "agent_profile_not_found",
"error": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
]
}Linear
Create Linear route
Routes the issues of a Linear team, or of one of its projects, to an Aether project, storing the team's key and name and the project's name as Linear lists them now.
Use this tool when you need to:
- Let the issues of a Linear team start tasks in an Aether project
- Narrow a team's issues to one Linear project, or send one Linear source to several Aether projects
Examples:
- POST /orgs/{orgID}/linear/routes {"linear_team_id": "9cfb482a-81e3-4154-b5b9-2c805e70a02d", "aether_project_id": "6f1c2a9e-3b7d-4c55-9a2e-0d8b1f4e7c21", "enabled": true}
- POST /orgs/{orgID}/linear/routes {"linear_team_id": "9cfb482a-81e3-4154-b5b9-2c805e70a02d", "linear_project_id": "3e7b1d42-5c8a-4f06-9b1e-7a2d4c6f8e13", "aether_project_id": "6f1c2a9e-3b7d-4c55-9a2e-0d8b1f4e7c21", "enabled": true, "agent_profile_id": "2a4c6e8f-1b3d-4f5a-8c7e-9d0b2f4a6c81"}
Hints:
- orgID is the organization's uuid. linear_team_id (from listLinearTeams), aether_project_id (a uuid) and enabled are required; linear_project_id (from listLinearProjects; omitted: every issue of the team) and agent_profile_id (a uuid; omitted: the project's defaults) are optional. The schema answers 422 for a missing required field, an empty string, a value that is not a uuid where one is due, or an unknown field; a linear_team_id or linear_project_id made only of whitespace is the handler's 422 with no domain code.
- Answers 201 with the route (listLinearRoutes's shape). Only enabled routes take issues: an Aether agent session on an issue with no task yet starts one through the enabled routes scoped to its Linear project when there are any, else its team's enabled team-wide routes, asking Which project? in Linear when there are several; the task is created as the default actor with the route's agent profile.
- Refused, in this order, with 404 not_connected when Linear is not installed, 404 project_not_found for a project not in the organization or archived, 422 project_repo_disconnected for a project whose repository's GitHub link is disconnected (a project with no repository is routable), 404 linear_team_not_found for a team Linear does not list, 404 linear_project_not_found for a project not among the team's projects as listLinearProjects reads them, 409 route_exists for a source already routed to the project (a team-wide route and a route of one of the team's projects may share a project), and 422 agent_profile_not_found for a profile the organization does not hold.
- A Linear that fails to answer is a 502, and it is a 500 when Linear refuses the stored refresh token or a disconnect is under way.
- Use updateLinearRoute instead to change an existing route's enabled or agent_profile_id, listProjects and listAgentProfiles to find aether_project_id and agent_profile_id, and createSlackRoute or createSentryRoute for those integrations.
- Owners and admins of the organization in the path, with a session or a platform API key: a member, viewer or billing member is refused with 403 org_role_insufficient before the body is validated, a non-member with 403 org_membership_required, an orgID that is not a uuid with 400, and an agent host's grant with 403 agent_host_route_not_allowed.
POST
/
orgs
/
{orgID}
/
linear
/
routes
Create Linear route
curl --request POST \
--url https://api.runaether.dev/orgs/{orgID}/linear/routes \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"aether_project_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"enabled": true,
"linear_team_id": "<string>",
"agent_profile_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"linear_project_id": "<string>"
}
'import requests
url = "https://api.runaether.dev/orgs/{orgID}/linear/routes"
payload = {
"aether_project_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"enabled": True,
"linear_team_id": "<string>",
"agent_profile_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"linear_project_id": "<string>"
}
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({
aether_project_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
enabled: true,
linear_team_id: '<string>',
agent_profile_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
linear_project_id: '<string>'
})
};
fetch('https://api.runaether.dev/orgs/{orgID}/linear/routes', 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.runaether.dev/orgs/{orgID}/linear/routes",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'aether_project_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'enabled' => true,
'linear_team_id' => '<string>',
'agent_profile_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'linear_project_id' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.runaether.dev/orgs/{orgID}/linear/routes"
payload := strings.NewReader("{\n \"aether_project_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"enabled\": true,\n \"linear_team_id\": \"<string>\",\n \"agent_profile_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"linear_project_id\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.runaether.dev/orgs/{orgID}/linear/routes")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"aether_project_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"enabled\": true,\n \"linear_team_id\": \"<string>\",\n \"agent_profile_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"linear_project_id\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.runaether.dev/orgs/{orgID}/linear/routes")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"aether_project_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"enabled\": true,\n \"linear_team_id\": \"<string>\",\n \"agent_profile_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"linear_project_id\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"aether_project_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"agent_profile_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"enabled": true,
"linear_project_id": "<string>",
"linear_project_name": "<string>",
"linear_team_id": "<string>",
"linear_team_key": "<string>",
"linear_team_name": "<string>",
"route_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"code": "agent_profile_not_found",
"error": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
]
}{
"code": "agent_profile_not_found",
"error": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
]
}{
"code": "org_membership_required",
"error": "<string>"
}{
"code": "agent_profile_not_found",
"error": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
]
}{
"code": "agent_profile_not_found",
"error": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
]
}{
"code": "agent_profile_not_found",
"error": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
]
}{
"code": "agent_profile_not_found",
"error": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
]
}{
"code": "agent_profile_not_found",
"error": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
]
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Body
application/json
Response
Created
The agent profile tasks the route starts run with; null for the project's defaults.
The Linear project whose issues the route takes; null for every issue of the team.
Minimum string length:
1The Linear project's name; null for a team-wide route.
Minimum string length:
1Minimum string length:
1Minimum string length:
1Minimum string length:
1