Skip to content
Connect an agent
Organisations

Read an organisation's avatar

The uploaded avatar as the check stored it, with nosniff, a policy that lets it draw and nothing else, and a private cache keyed by the version in the address.

GET/orgs/{org}/avatar

TL;DR

QuestionAnswer
What does it do?Read an organisation's avatar.
What does it take?org in the path, and v in the query string.
What does it return?Status 200 with no body.
What can go wrong?401 not signed in, or the key is not valid; 404 no such organisation, the caller is not a member of it, or it has no avatar; 429 too many requests; 503 organisations are not set up on this server. Every failure uses the one error envelope.

What it does

The uploaded avatar as the check stored it, with nosniff, a policy that lets it draw and nothing else, and a private cache keyed by the version in the address. A 404 when there is none. Every member may read it, and so may a key of the organisation.

Path parameters

FieldTypeRequiredDescription
orgstringyesThe organisation's id or its slug.

Query parameters

FieldTypeRequiredDescription
vstringnoThe version from the organisation JSON, so a new picture is a new address.

Responses

StatusMeaningBody
200The avatar file.none
401Not signed in, or the key is not valid.ErrorResponse
404No such organisation, the caller is not a member of it, or it has no avatar.ErrorResponse
429Too many requests.ErrorResponse
503Organisations are not set up on this server.ErrorResponse

See also

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