Link skills
import requests
url = "https://app.ubik-agent.com/api/v1/agent-sessions/{session_id}/skills"
payload = { "skill_ids": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"] }
headers = {
"X-API-KEY": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-KEY': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({skill_ids: ['3c90c3cc-0d44-4b50-8888-8dd25736052a']})
};
fetch('https://app.ubik-agent.com/api/v1/agent-sessions/{session_id}/skills', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request POST \
--url https://app.ubik-agent.com/api/v1/agent-sessions/{session_id}/skills \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '
{
"skill_ids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}
'{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Link skills
Links existing skills to the agent session context.
POST
/
agent-sessions
/
{session_id}
/
skills
Link skills
import requests
url = "https://app.ubik-agent.com/api/v1/agent-sessions/{session_id}/skills"
payload = { "skill_ids": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"] }
headers = {
"X-API-KEY": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-KEY': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({skill_ids: ['3c90c3cc-0d44-4b50-8888-8dd25736052a']})
};
fetch('https://app.ubik-agent.com/api/v1/agent-sessions/{session_id}/skills', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request POST \
--url https://app.ubik-agent.com/api/v1/agent-sessions/{session_id}/skills \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '
{
"skill_ids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}
'{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Was this page helpful?
⌘I

