Retrieve milestone Slack channel
curl --request GET \
--url https://api.tightknit.ai/v1/milestone_slack_channels/{milestone_slack_channel_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.tightknit.ai/v1/milestone_slack_channels/{milestone_slack_channel_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.tightknit.ai/v1/milestone_slack_channels/{milestone_slack_channel_id}', 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.tightknit.ai/v1/milestone_slack_channels/{milestone_slack_channel_id}",
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.tightknit.ai/v1/milestone_slack_channels/{milestone_slack_channel_id}"
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.tightknit.ai/v1/milestone_slack_channels/{milestone_slack_channel_id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.tightknit.ai/v1/milestone_slack_channels/{milestone_slack_channel_id}")
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{
"object": "milestone_slack_channel",
"id": "mlsc_3h7k2m9p4xqz",
"created_at": "2023-11-07T05:31:56Z",
"milestone_id": "mile_5v8b1c6d2fgh",
"created_by_id": "<string>",
"integrations": {
"slack": {
"channel_id": "C01ABC123",
"channel": {
"object": "slack_channel",
"id": "C01ABC123",
"name": "<string>",
"is_private": true,
"is_archived": true,
"num_members": 1,
"topic": {
"doc": {
"type": "doc",
"version": 1,
"content": [
{}
]
},
"text": "<string>"
},
"purpose": {
"doc": {
"type": "doc",
"version": 1,
"content": [
{}
]
},
"text": "<string>"
}
}
}
},
"milestone": {
"object": "milestone",
"id": "mile_5v8b1c6d2fgh",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"label": "<string>",
"action": "join_workspace",
"sort_order": 123,
"multiplier": 123,
"scoped_to_emoji_name": "<string>",
"achievements_count": 1,
"journey_id": "<string>",
"created_by_id": "<string>",
"integrations": {
"slack": {
"channel_ids": [
"<string>"
]
}
},
"created_by": {
"object": "profile",
"id": "prof_9f2b8c1d4e5a",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"name": "Ada Lovelace",
"full_name": "Ada Lovelace",
"display_name": "<string>",
"first_name": "<string>",
"last_name": "<string>",
"avatar_url": "<string>",
"email": "[email protected]",
"email_domain": "example.com",
"locale": "<string>",
"is_team_member": true,
"is_deactivated": true,
"opt_out_of_public_profile": true,
"member_since": "2023-11-07T05:31:56Z",
"invited_at": "2023-11-07T05:31:56Z",
"signed_up_at": "2023-11-07T05:31:56Z",
"source": "slack_sync",
"has_account": true,
"flair_group_id": "grup_7m3x9k4t8plz",
"slack_profile_id": "U0BRY4S6LNQ",
"integrations": {
"slack": {
"profile": {
"object": "slack_profile",
"id": "U0BRY4S6LNQ",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"workspace_id": "T01ABC123",
"display_name": "<string>",
"real_name": "<string>",
"email": "[email protected]",
"pronouns": "<string>",
"avatar_url": "<string>",
"locale": "<string>",
"tz": "<string>",
"is_bot": true,
"is_app_user": true,
"is_workflow_bot": true,
"is_admin": true,
"is_owner": true,
"is_restricted": true,
"is_invited_user": true,
"is_deleted": true
}
}
},
"field_values": [
{
"object": "profile_field_value",
"id": "pfvl_3n8c5v1b7zrd",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"profile_id": "prof_9f2b8c1d4e5a",
"profile_field_id": "pfld_6t2k9w4m8xqa",
"profile_field": {
"object": "profile_field",
"id": "pfld_6t2k9w4m8xqa",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"label": "City",
"hint": "<string>",
"type": "text",
"is_active": true,
"show_label_on_site": true,
"is_value_restricted_to_members": true,
"is_featured": true
},
"value": "San Francisco",
"display_text": "<string>"
}
]
}
},
"created_by": {
"object": "profile",
"id": "prof_9f2b8c1d4e5a",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"name": "Ada Lovelace",
"full_name": "Ada Lovelace",
"display_name": "<string>",
"first_name": "<string>",
"last_name": "<string>",
"avatar_url": "<string>",
"email": "[email protected]",
"email_domain": "example.com",
"locale": "<string>",
"is_team_member": true,
"is_deactivated": true,
"opt_out_of_public_profile": true,
"member_since": "2023-11-07T05:31:56Z",
"invited_at": "2023-11-07T05:31:56Z",
"signed_up_at": "2023-11-07T05:31:56Z",
"source": "slack_sync",
"has_account": true,
"flair_group_id": "grup_7m3x9k4t8plz",
"slack_profile_id": "U0BRY4S6LNQ",
"integrations": {
"slack": {
"profile": {
"object": "slack_profile",
"id": "U0BRY4S6LNQ",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"workspace_id": "T01ABC123",
"display_name": "<string>",
"real_name": "<string>",
"email": "[email protected]",
"pronouns": "<string>",
"avatar_url": "<string>",
"locale": "<string>",
"tz": "<string>",
"is_bot": true,
"is_app_user": true,
"is_workflow_bot": true,
"is_admin": true,
"is_owner": true,
"is_restricted": true,
"is_invited_user": true,
"is_deleted": true
}
}
},
"field_values": [
{
"object": "profile_field_value",
"id": "pfvl_3n8c5v1b7zrd",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"profile_id": "prof_9f2b8c1d4e5a",
"profile_field_id": "pfld_6t2k9w4m8xqa",
"profile_field": {
"object": "profile_field",
"id": "pfld_6t2k9w4m8xqa",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"label": "City",
"hint": "<string>",
"type": "text",
"is_active": true,
"show_label_on_site": true,
"is_value_restricted_to_members": true,
"is_featured": true
},
"value": "San Francisco",
"display_text": "<string>"
}
]
}
}{
"type": "about:blank",
"title": "Not found",
"status": 404,
"code": "not_found",
"detail": "<string>",
"param": "<string>",
"used_by": [
{
"object": "event",
"id": "cevt_V1StGXR8Z5jd",
"field": "cover_image_file_id"
}
],
"request_id": "req_9f2b8c1d4e5a6b7c8d9e0f1a2b3c4d5e"
}Journeys
Retrieve milestone Slack channel
Returns one milestone Slack channel by its id.
Retrieve milestone Slack channel
curl --request GET \
--url https://api.tightknit.ai/v1/milestone_slack_channels/{milestone_slack_channel_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.tightknit.ai/v1/milestone_slack_channels/{milestone_slack_channel_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.tightknit.ai/v1/milestone_slack_channels/{milestone_slack_channel_id}', 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.tightknit.ai/v1/milestone_slack_channels/{milestone_slack_channel_id}",
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.tightknit.ai/v1/milestone_slack_channels/{milestone_slack_channel_id}"
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.tightknit.ai/v1/milestone_slack_channels/{milestone_slack_channel_id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.tightknit.ai/v1/milestone_slack_channels/{milestone_slack_channel_id}")
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{
"object": "milestone_slack_channel",
"id": "mlsc_3h7k2m9p4xqz",
"created_at": "2023-11-07T05:31:56Z",
"milestone_id": "mile_5v8b1c6d2fgh",
"created_by_id": "<string>",
"integrations": {
"slack": {
"channel_id": "C01ABC123",
"channel": {
"object": "slack_channel",
"id": "C01ABC123",
"name": "<string>",
"is_private": true,
"is_archived": true,
"num_members": 1,
"topic": {
"doc": {
"type": "doc",
"version": 1,
"content": [
{}
]
},
"text": "<string>"
},
"purpose": {
"doc": {
"type": "doc",
"version": 1,
"content": [
{}
]
},
"text": "<string>"
}
}
}
},
"milestone": {
"object": "milestone",
"id": "mile_5v8b1c6d2fgh",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"label": "<string>",
"action": "join_workspace",
"sort_order": 123,
"multiplier": 123,
"scoped_to_emoji_name": "<string>",
"achievements_count": 1,
"journey_id": "<string>",
"created_by_id": "<string>",
"integrations": {
"slack": {
"channel_ids": [
"<string>"
]
}
},
"created_by": {
"object": "profile",
"id": "prof_9f2b8c1d4e5a",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"name": "Ada Lovelace",
"full_name": "Ada Lovelace",
"display_name": "<string>",
"first_name": "<string>",
"last_name": "<string>",
"avatar_url": "<string>",
"email": "[email protected]",
"email_domain": "example.com",
"locale": "<string>",
"is_team_member": true,
"is_deactivated": true,
"opt_out_of_public_profile": true,
"member_since": "2023-11-07T05:31:56Z",
"invited_at": "2023-11-07T05:31:56Z",
"signed_up_at": "2023-11-07T05:31:56Z",
"source": "slack_sync",
"has_account": true,
"flair_group_id": "grup_7m3x9k4t8plz",
"slack_profile_id": "U0BRY4S6LNQ",
"integrations": {
"slack": {
"profile": {
"object": "slack_profile",
"id": "U0BRY4S6LNQ",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"workspace_id": "T01ABC123",
"display_name": "<string>",
"real_name": "<string>",
"email": "[email protected]",
"pronouns": "<string>",
"avatar_url": "<string>",
"locale": "<string>",
"tz": "<string>",
"is_bot": true,
"is_app_user": true,
"is_workflow_bot": true,
"is_admin": true,
"is_owner": true,
"is_restricted": true,
"is_invited_user": true,
"is_deleted": true
}
}
},
"field_values": [
{
"object": "profile_field_value",
"id": "pfvl_3n8c5v1b7zrd",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"profile_id": "prof_9f2b8c1d4e5a",
"profile_field_id": "pfld_6t2k9w4m8xqa",
"profile_field": {
"object": "profile_field",
"id": "pfld_6t2k9w4m8xqa",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"label": "City",
"hint": "<string>",
"type": "text",
"is_active": true,
"show_label_on_site": true,
"is_value_restricted_to_members": true,
"is_featured": true
},
"value": "San Francisco",
"display_text": "<string>"
}
]
}
},
"created_by": {
"object": "profile",
"id": "prof_9f2b8c1d4e5a",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"name": "Ada Lovelace",
"full_name": "Ada Lovelace",
"display_name": "<string>",
"first_name": "<string>",
"last_name": "<string>",
"avatar_url": "<string>",
"email": "[email protected]",
"email_domain": "example.com",
"locale": "<string>",
"is_team_member": true,
"is_deactivated": true,
"opt_out_of_public_profile": true,
"member_since": "2023-11-07T05:31:56Z",
"invited_at": "2023-11-07T05:31:56Z",
"signed_up_at": "2023-11-07T05:31:56Z",
"source": "slack_sync",
"has_account": true,
"flair_group_id": "grup_7m3x9k4t8plz",
"slack_profile_id": "U0BRY4S6LNQ",
"integrations": {
"slack": {
"profile": {
"object": "slack_profile",
"id": "U0BRY4S6LNQ",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"workspace_id": "T01ABC123",
"display_name": "<string>",
"real_name": "<string>",
"email": "[email protected]",
"pronouns": "<string>",
"avatar_url": "<string>",
"locale": "<string>",
"tz": "<string>",
"is_bot": true,
"is_app_user": true,
"is_workflow_bot": true,
"is_admin": true,
"is_owner": true,
"is_restricted": true,
"is_invited_user": true,
"is_deleted": true
}
}
},
"field_values": [
{
"object": "profile_field_value",
"id": "pfvl_3n8c5v1b7zrd",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"profile_id": "prof_9f2b8c1d4e5a",
"profile_field_id": "pfld_6t2k9w4m8xqa",
"profile_field": {
"object": "profile_field",
"id": "pfld_6t2k9w4m8xqa",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"label": "City",
"hint": "<string>",
"type": "text",
"is_active": true,
"show_label_on_site": true,
"is_value_restricted_to_members": true,
"is_featured": true
},
"value": "San Francisco",
"display_text": "<string>"
}
]
}
}{
"type": "about:blank",
"title": "Not found",
"status": 404,
"code": "not_found",
"detail": "<string>",
"param": "<string>",
"used_by": [
{
"object": "event",
"id": "cevt_V1StGXR8Z5jd",
"field": "cover_image_file_id"
}
],
"request_id": "req_9f2b8c1d4e5a6b7c8d9e0f1a2b3c4d5e"
}Authorizations
Path Parameters
Query Parameters
Response
Success
One Slack channel a milestone is scoped to. Its channel is the one field an update changes: to replace a milestone’s channel, move its row to the new one.
Was this page helpful?

