List org invites Run in API Explorer
Return all pending invites for a given org, only team owners can call this endpoint
GET
/v2/orgs/{org_name}/invites
curl \
--request GET 'https://hub.docker.com/v2/orgs/myorganization/invites' \
--header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
"data": [
{
"id": "e36eca69-4cc8-4f17-9845-ae8c2b832691",
"inviter_username": "moby",
"invitee": "invitee@docker.com",
"org": "docker",
"team": "owners",
"created_at": "2021-10-28T18:30:19.520861Z"
}
]
}
Response examples (401)
{
"errinfo": {},
"detail": "string",
"message": "string"
}
Response examples (403)
{
"errinfo": {},
"detail": "string",
"message": "string"
}
Response examples (404)
{
"errinfo": {},
"detail": "string",
"message": "string"
}