Slack Channel Members
Extract members from a Slack channel. Requires workspace cookie and token for authentication.
Pricing: 2 credits per call
curl -X POST "https://v3-api.texau.com/api/v1/slack_channel_members" \
-H "Content-Type: application/json" \
-H "x-api-key: YOUR_API_KEY" \
-d '{
"workspace": "mycompany",
"channel_id": "C01ABC2DEFG",
"cookie": "example_string",
"token": "example_string",
"max_members": 42,
"cache": true
}'
import requests
import json
url = "https://v3-api.texau.com/api/v1/slack_channel_members"
headers = {
"Content-Type": "application/json",
"x-api-key": "YOUR_API_KEY"
}
data = {
"workspace": "mycompany",
"channel_id": "C01ABC2DEFG",
"cookie": "example_string",
"token": "example_string",
"max_members": 42,
"cache": true
}
response = requests.post(url, headers=headers, json=data)
print(response.json())
const response = await fetch("https://v3-api.texau.com/api/v1/slack_channel_members", {
method: "POST",
headers: {
"Content-Type": "application/json",
"x-api-key": "YOUR_API_KEY"
},
body: JSON.stringify({
"workspace": "mycompany",
"channel_id": "C01ABC2DEFG",
"cookie": "example_string",
"token": "example_string",
"max_members": 42,
"cache": true
})
});
const data = await response.json();
console.log(data);
package main
import (
"fmt"
"net/http"
"bytes"
"encoding/json"
)
func main() {
data := []byte(`{
"workspace": "mycompany",
"channel_id": "C01ABC2DEFG",
"cookie": "example_string",
"token": "example_string",
"max_members": 42,
"cache": true
}`)
req, err := http.NewRequest("POST", "https://v3-api.texau.com/api/v1/slack_channel_members", bytes.NewBuffer(data))
if err != nil {
panic(err)
}
req.Header.Set("Content-Type", "application/json")
req.Header.Set("x-api-key", "YOUR_API_KEY")
client := &http.Client{}
resp, err := client.Do(req)
if err != nil {
panic(err)
}
defer resp.Body.Close()
fmt.Println("Response Status:", resp.Status)
}
require 'net/http'
require 'json'
uri = URI('https://v3-api.texau.com/api/v1/slack_channel_members')
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true
request = Net::HTTP::Post.new(uri)
request['Content-Type'] = 'application/json'
request['x-api-key'] = 'YOUR_API_KEY'
request.body = '{
"workspace": "mycompany",
"channel_id": "C01ABC2DEFG",
"cookie": "example_string",
"token": "example_string",
"max_members": 42,
"cache": true
}'
response = http.request(request)
puts response.body
{
"data": {
"channel_id": "example_string",
"workspace": "example_string",
"members": [
{
"user_id": "example_string",
"real_name": "John Doe",
"display_name": "John Doe",
"email": "[email protected]",
"title": "example_string",
"phone": "+1-555-0123",
"status_text": "example_string",
"timezone": "example_string",
"is_admin": true,
"is_owner": true,
"avatar_url": "example_string"
}
],
"total_members": 42
},
"meta": {
"cache_hit": true,
"execution_time_ms": 42
}
}
{
"error": "Forbidden",
"message": "You don't have permission to access this resource",
"code": 403
}
{
"error": "Too Many Requests",
"message": "Rate limit exceeded. Please try again later",
"code": 429,
"retryAfter": 3600
}
POST
/slack_channel_members
POST
API Key (header: x-api-key)
x-api-keystring
RequiredYour TexAu API key. Contact TexAu to obtain one.
Your TexAu API key. Contact TexAu to obtain one.
Content-Typestring
RequiredThe media type of the request body
Options: application/json
workspacestring
RequiredSlack workspace name (subdomain)
channel_idstring
RequiredSlack channel ID
tokenstring
RequiredSlack xoxc token
max_membersinteger
Maximum number of members to return
Request Preview
Response
Response will appear here after sending the request
Authentication
header
x-api-keystring
RequiredAPI Key for authentication. Your TexAu API key. Contact TexAu to obtain one.
Body
application/json
workspacestring
RequiredSlack workspace name (subdomain)
channel_idstring
RequiredSlack channel ID
tokenstring
RequiredSlack xoxc token
max_membersinteger
Maximum number of members to return
Responses
dataobject
channel_idstring
workspacestring
membersarray
user_idstring
real_namestring
display_namestring
emailstring
titlestring
phonestring
status_textstring
timezonestring
is_adminboolean
is_ownerboolean
avatar_urlstring
total_membersinteger
metaobject
cache_hitboolean
execution_time_msinteger
messagestring
errorstring
apistring
limitinteger
currentinteger
Was this page helpful?
Last updated 2 weeks ago
Built with Documentation.AI