Usage
- cURL
- Node.js
- Python
- Ruby
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
How to access the Channeled API.
curl --request POST \
--url https://api.withchanneled.com/graphql \
--header "Content-Type: application/json" \
--header "Authorization: Bearer your-api-key"
--data '{ "query": "query { me { id } }" }'
const API_KEY = 'your-api-key';
const response = await fetch('https://api.withchanneled.com/graphql', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
Authorization: `Bearer ${API_KEY}`,
},
body: JSON.stringify({
query: `
query {
me {
id
}
}
`
}),
});
console.log(await response.json());
import requests
API_KEY = 'your-api-key'
response = requests.post(
'https://api.withchanneled.com/graphql',
headers={
'Content-Type': 'application/json',
'Authorization': f'Bearer {API_KEY}'
},
json={
'query': 'query { me { id } }'
}
)
print(response.json())
require 'net/http'
require 'json'
require 'uri'
API_KEY = 'your-api-key'
uri = URI('https://api.withchanneled.com/graphql')
query = {
"query" => "query { me { id } }"
}.to_json
http = Net::HTTP.new(uri.host, uri.port)
request = Net::HTTP::Post.new(uri)
request['Content-Type'] = 'application/json'
request['Authorization'] = "Bearer #{API_KEY}"
request.body = query
response = http.request(request)
puts(JSON.parse(response.body))