List org invites Run in API Explorer

GET /v2/orgs/{org_name}/invites

Return all pending invites for a given org, only team owners can call this endpoint

Path parameters

  • org_name string Required

    Name of the organization (namespace).

Responses

  • 200 application/json
    Hide response attribute Show response attribute object
    • data array[object]
      Hide data attributes Show data attributes object
      • id string

        uuid representing the invite id

      • inviter_username string
      • invitee string

        can either be a dockerID for registred users or an email for non-registred users

      • org string

        name of the org to join

      • team string

        name of the team (user group) to join

      • created_at string
  • 401 application/json

    Authentication failed

    Hide response attributes Show response attributes object
    • errinfo object
    • detail string
    • message string
  • 403 application/json

    Forbidden

    Hide response attributes Show response attributes object
    • errinfo object
    • detail string
    • message string
  • 404 application/json

    Not Found

    Hide response attributes Show response attributes object
    • errinfo object
    • detail string
    • message string
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"
}