Create Slack route
curl --request POST \
--url https://api.runaether.dev/orgs/{orgID}/slack/routes \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"aether_project_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"channel_id": "<string>",
"enabled": true,
"agent_profile_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'import requests
url = "https://api.runaether.dev/orgs/{orgID}/slack/routes"
payload = {
"aether_project_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"channel_id": "<string>",
"enabled": True,
"agent_profile_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
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',
channel_id: '<string>',
enabled: true,
agent_profile_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a'
})
};
fetch('https://api.runaether.dev/orgs/{orgID}/slack/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}/slack/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',
'channel_id' => '<string>',
'enabled' => true,
'agent_profile_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a'
]),
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}/slack/routes"
payload := strings.NewReader("{\n \"aether_project_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"channel_id\": \"<string>\",\n \"enabled\": true,\n \"agent_profile_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\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}/slack/routes")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"aether_project_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"channel_id\": \"<string>\",\n \"enabled\": true,\n \"agent_profile_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.runaether.dev/orgs/{orgID}/slack/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 \"channel_id\": \"<string>\",\n \"enabled\": true,\n \"agent_profile_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\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",
"channel_id": "<string>",
"channel_name": "<string>",
"enabled": true,
"is_private": true,
"post_task_cards": true,
"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>"
}
]
}{
"code": "agent_profile_not_found",
"error": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
]
}Slack
Create Slack route
Routes the mentions of Aether in a Slack channel to an Aether project, storing the channel's name and privacy as Slack lists them now, and returns the route.
Use this tool when you need to:
- Let mentions of Aether in a channel start tasks in a project
- Route a channel to one more project (a channel may route to several, one route each)
Examples:
- POST /orgs/{orgID}/slack/routes {"channel_id": "C0123ABCD", "aether_project_id": "6f1c2a9e-3b7d-4c55-9a2e-0d8b1f4e7c21", "enabled": true}
- POST /orgs/{orgID}/slack/routes {"channel_id": "C0123ABCD", "aether_project_id": "6f1c2a9e-3b7d-4c55-9a2e-0d8b1f4e7c21", "enabled": false, "agent_profile_id": "0d8b1f4e-7c21-4c55-9a2e-6f1c2a9e3b7d"}
Hints:
- orgID is the org's uuid. channel_id (Slack's id, from listSlackChannels), aether_project_id (a uuid) and enabled are required, agent_profile_id (a uuid) is optional and omitted for the project's defaults; the schema answers 422 for a missing or mistyped field or any other, channel_name, is_private and post_task_cards included, and the handler 422, with no domain code, for a channel_id of white space alone.
- Answers 201 with the route. It posts no task cards until updateSlackRoute turns post_task_cards on, and enabled false creates it paused: its mentions start no task.
- Use listSlackChannels instead to find the channel's id, listAgentProfiles to find a profile, and updateSlackRoute to change an existing route.
- Owners and admins only, 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.
- Refused, in this order, with 404 not_connected when Slack is not installed, 404 project_not_found for a project not in the org or archived, 422 project_repo_disconnected for a project whose repository's GitHub link is disconnected (a project with no repository is routable), 502 when Slack fails to answer, and 404 slack_channel_not_found for a channel Slack does not list.
- Then 409 route_exists when the channel already routes to the project (the message names both), or 422 agent_profile_not_found for a profile the organization does not hold.
POST
/
orgs
/
{orgID}
/
slack
/
routes
Create Slack route
curl --request POST \
--url https://api.runaether.dev/orgs/{orgID}/slack/routes \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"aether_project_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"channel_id": "<string>",
"enabled": true,
"agent_profile_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'import requests
url = "https://api.runaether.dev/orgs/{orgID}/slack/routes"
payload = {
"aether_project_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"channel_id": "<string>",
"enabled": True,
"agent_profile_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
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',
channel_id: '<string>',
enabled: true,
agent_profile_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a'
})
};
fetch('https://api.runaether.dev/orgs/{orgID}/slack/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}/slack/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',
'channel_id' => '<string>',
'enabled' => true,
'agent_profile_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a'
]),
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}/slack/routes"
payload := strings.NewReader("{\n \"aether_project_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"channel_id\": \"<string>\",\n \"enabled\": true,\n \"agent_profile_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\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}/slack/routes")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"aether_project_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"channel_id\": \"<string>\",\n \"enabled\": true,\n \"agent_profile_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.runaether.dev/orgs/{orgID}/slack/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 \"channel_id\": \"<string>\",\n \"enabled\": true,\n \"agent_profile_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\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",
"channel_id": "<string>",
"channel_name": "<string>",
"enabled": true,
"is_private": true,
"post_task_cards": true,
"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>"
}
]
}{
"code": "agent_profile_not_found",
"error": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
]
}Authorizations
Body
application/json
Response
Created