Skip to content
Connect an agent

Organisations

How often every embed link of the organisation was shown, by website

The last 30 days, by link and website, with the diagram each shows.

GET/orgs/{org}/embed-links/views

TL;DR

QuestionAnswer
What does it do?How often every embed link of the organisation was shown, by website.
What does it take?org in the path.
What does it return?Status 200 with a body of type EmbedLinkViews.
What can go wrong?401 not signed in; 403 only the owner and admins may (orgs.forbidden); 404 no such organisation, or the caller is not a member of it; 429 too many requests; 503 organisations are not set up on this server. Every failure uses the one error envelope.

What it does

The last 30 days, by link and website, with the diagram each shows. For the owner and admins.

Path parameters

FieldTypeRequiredDescription
orgstringyesThe organisation's id or its slug.

Responses

StatusMeaningBody
200The views.EmbedLinkViews
401Not signed in.ErrorResponse
403Only the owner and admins may (orgs.forbidden).ErrorResponse
404No such organisation, or the caller is not a member of it.ErrorResponse
429Too many requests.ErrorResponse
503Organisations are not set up on this server.ErrorResponse

Response body

A 200 answer has the type EmbedLinkViews.

FieldTypeRequiredDescription
availablebooleanyesFalse when views are not set up on this server or could not be read now.
daysintegeryes
linksobject[]yes
links[].linkIdstringyes
links[].diagramIdstringyes
links[].labelstring | nullyes
links[].shownintegeryes
links[].refusedintegeryes
links[].sitesobject[]yes
links[].sites[].sitestringyesThe host of the page that asked, or empty for requests that named no page.
links[].sites[].shownintegeryes
links[].sites[].refusedintegeryesPlaceholders: a site not on the list, no site named, or an ended link.
links[].sites[].lastDaystringyesThe last UTC day it asked, YYYY-MM-DD.
links[].daysobject[]yes
links[].days[].daystringyes
links[].days[].shownintegeryes
links[].days[].refusedintegeryes

See also

DocWhy
API referenceEvery endpoint, and the error envelope
SchemasEvery request and response type
Tool referenceThe operations as callable tools