Get Linear install URL
curl --request GET \
--url https://api.runaether.dev/orgs/{orgID}/auth/linear/url \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.runaether.dev/orgs/{orgID}/auth/linear/url"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.runaether.dev/orgs/{orgID}/auth/linear/url', 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}/auth/linear/url",
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.runaether.dev/orgs/{orgID}/auth/linear/url"
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.runaether.dev/orgs/{orgID}/auth/linear/url")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.runaether.dev/orgs/{orgID}/auth/linear/url")
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{
"url": "<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": "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>"
}
]
}Linear
Get Linear install URL
Returns the linear.app URL that installs Aether’s Linear app for the organization, with a state signed for the caller and the organization.
Use this tool when you need to:
- Connect a Linear workspace to an organization so its issues can start tasks in Aether
- Connect Linear again after disconnectLinear, or connect another Linear workspace in its place
Examples:
- GET /orgs//auth/linear/url
- GET /orgs/6f1c2a9e-3b7d-4c55-9a2e-0d8b1f4e7c21/auth/linear/url?redirect_to=aether://linear-connected
Hints:
- orgID is the organization’s uuid. redirect_to is optional, at most 512 characters; the schema answers 422 for a longer value or one that does not parse as a URL. Answers 200 with url.
- Open url in a browser: the caller authorizes the app on linear.app, then Linear redirects to Aether’s callback, which stores the installation with the caller as its default actor (whom its tasks are created as). The signed state expires after 15 minutes.
- After a successful connect the browser returns to redirect_to only when it is exactly aether://linear-connected or on the Aether web app’s own scheme and host; otherwise, and after any failure, it lands on the web app’s settings page with ?linear= naming the outcome.
- The callback installs nothing when the caller is no longer an owner or admin of the organization, the organization already holds a Linear installation, or the Linear workspace is connected to another Aether organization; this operation does not check whether Linear is already connected.
- Use getLinearStatus instead to see whether Linear is connected (disconnectLinear first to replace it), and getSlackInstallUrl or getSentryInstallUrl to connect Slack or Sentry.
- 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 redirect_to 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. A deployment without a Linear app does not serve it (404).
GET
/
orgs
/
{orgID}
/
auth
/
linear
/
url
Get Linear install URL
curl --request GET \
--url https://api.runaether.dev/orgs/{orgID}/auth/linear/url \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.runaether.dev/orgs/{orgID}/auth/linear/url"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.runaether.dev/orgs/{orgID}/auth/linear/url', 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}/auth/linear/url",
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.runaether.dev/orgs/{orgID}/auth/linear/url"
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.runaether.dev/orgs/{orgID}/auth/linear/url")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.runaether.dev/orgs/{orgID}/auth/linear/url")
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{
"url": "<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": "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>"
}
]
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Query Parameters
Maximum string length:
512Response
OK
Minimum string length:
1