Create a public access token for a run
curl --request POST \
--url https://api.trycomp.ai/v1/knowledge-base/runs/{runId}/token \
--header 'X-API-Key: <api-key>'const options = {method: 'POST', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.trycomp.ai/v1/knowledge-base/runs/{runId}/token', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.trycomp.ai/v1/knowledge-base/runs/{runId}/token"
headers = {"X-API-Key": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)Knowledge Base
Create a public access token for a run | Comp AI API
Create a public access token for a run in Comp AI. Upload source documents, process them for retrieval, and manage reusable manual answers that power.
POST
/
v1
/
knowledge-base
/
runs
/
{runId}
/
token
Create a public access token for a run
curl --request POST \
--url https://api.trycomp.ai/v1/knowledge-base/runs/{runId}/token \
--header 'X-API-Key: <api-key>'const options = {method: 'POST', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.trycomp.ai/v1/knowledge-base/runs/{runId}/token', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.trycomp.ai/v1/knowledge-base/runs/{runId}/token"
headers = {"X-API-Key": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)Was this page helpful?

