links

List

GET
Lists the available links.

Query parameters

objectstringRequired
The ID of the object to list the links for.
cursorstringOptional
The cursor to resume iteration from. If not provided, then iteration starts from the beginning.
directionenumOptional
The direction of the links to list, otherwise if not present, then links in both directions (source and target) are included.
Allowed values: is_sourceis_target
limitintegerOptional
The maximum number of links to return. If not set, then the default is '50'.
link_typeenumOptional
The link type(s) to filter for, otherwise if not present, all link types are included.
modeenumOptional
The iteration mode to use, otherwise if not set, then "after" is used.
Allowed values: afterbefore
typesenumOptional
The link types to filter for, otherwise if not present, all link types are included.

Response

This endpoint returns an object
links
list of objects
The list of links.
next_cursor
stringOptional
The cursor used to iterate subsequent results in accordance to the sort order. If not set, then no later elements exist.
prev_cursor
stringOptional
The cursor used to iterate preceding results in accordance to the sort order. If not set, then no prior elements exist.
GET
1curl -G https://api.devrev.ai/links.list \
2 -H "Authorization: <apiKey>" \
3 -d object=object
200
Retrieved
1{
2 "links": [],
3 "next_cursor": "next_cursor",
4 "prev_cursor": "prev_cursor"
5}