Open links
curl --request POST \
--url https://api.avazal.com/v1/search.resolve \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"urls": [
"<string>"
]
}
'const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({urls: ['<string>']})
};
fetch('https://api.avazal.com/v1/search.resolve', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.avazal.com/v1/search.resolve"
payload = { "urls": ["<string>"] }
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"links": [
{
"url": "<string>",
"object": {
"_tag": "MailThread",
"url": "<string>",
"title": "<string>",
"id": "<string>",
"lastAt": "<string>"
}
}
]
}{
"issues": [
{
"_tag": "Pointer",
"path": [
"<string>"
],
"message": "<string>"
}
],
"message": "<string>",
"_tag": "HttpApiDecodeError"
}{
"message": "<string>",
"_tag": "KeyRequired"
}{
"_tag": "AccessPending",
"message": "<string>"
}{
"action": {
"tool": "<string>",
"input": {}
},
"message": "<string>",
"_tag": "AskFirst"
}{
"message": "<string>",
"_tag": "Unsupported"
}Search
Resolve Links
Open links
POST
/
v1
/
search.resolve
Open links
curl --request POST \
--url https://api.avazal.com/v1/search.resolve \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"urls": [
"<string>"
]
}
'const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({urls: ['<string>']})
};
fetch('https://api.avazal.com/v1/search.resolve', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.avazal.com/v1/search.resolve"
payload = { "urls": ["<string>"] }
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"links": [
{
"url": "<string>",
"object": {
"_tag": "MailThread",
"url": "<string>",
"title": "<string>",
"id": "<string>",
"lastAt": "<string>"
}
}
]
}{
"issues": [
{
"_tag": "Pointer",
"path": [
"<string>"
],
"message": "<string>"
}
],
"message": "<string>",
"_tag": "HttpApiDecodeError"
}{
"message": "<string>",
"_tag": "KeyRequired"
}{
"_tag": "AccessPending",
"message": "<string>"
}{
"action": {
"tool": "<string>",
"input": {}
},
"message": "<string>",
"_tag": "AskFirst"
}{
"message": "<string>",
"_tag": "Unsupported"
}Say what up to 100 pasted links point to: Slack message permalinks, thread links, Slack List and canvas links, Linear and Gmail links and avazal.com links. Each link comes back in order with its object, or null. Read each object with the operation for its _tag: Conversation → conversations_get, or messages_get when message is set; List → lists_get or tasks_get when item is set; File → documents_get for a canvas; Document or Artifact → documents_get; MailThread → conversations_get; CalendarEvent → events_get.
Requires the
search:read scope.