Fetch
Load the record behind one typed id returned by GET /v1/search.
GET
/
v1
/
fetch
Fetch
curl --request GET \
--url https://api.topo.io/v1/fetch \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.topo.io/v1/fetch', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.topo.io/v1/fetch"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"id": "<string>",
"type": "lead",
"title": "<string>",
"text": "<string>",
"metadata": {},
"url": "<string>"
}Load the record behind one typed id returned by
GET /v1/search.
Whatever kind the id names, the response has the same shape: a readable
rendering plus every field that kind’s detail read returns, so a client can
follow a search result without branching per endpoint. The read scope of
the named kind is required.Authorizations
Bearer API key issued from Settings → Developers.
Query Parameters
Typed id returned by GET /v1/search, in the form <type>:<uuid>.
Response
200 - application/json
Successful Response
Typed id of the record, in the form <type>:<uuid>.
Kind of record returned.
Available options:
lead, account, sequence_template, task Display name of the record.
Readable rendering of the record, for display and search indexing.
Deep link to the record in the Topo app, when it has a page.
Was this page helpful?
⌘I
Fetch
curl --request GET \
--url https://api.topo.io/v1/fetch \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.topo.io/v1/fetch', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.topo.io/v1/fetch"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"id": "<string>",
"type": "lead",
"title": "<string>",
"text": "<string>",
"metadata": {},
"url": "<string>"
}