API → OrgsAdd a member to your org

Parameters

Name

Type

Req.

  • bodyapplication/json

    object
    optional
    Object Properties
    • email

      string / Email Address
      optional
    • role

      string
      optional
      Possible values
      • admin:  Admins can do anything in the org.
      • member:  Members of an org can not modify an org, but they belong in the org.

Returns

  • 201 Created

    successful creation

    Name

    Type

    Req.

    body

    object
    optional
    Object Properties
    • company

      string
      optional
    • created_at

      string / ISO-8601
      optional
    • discord

      string
      optional
    • email

      string / Email Address
      optional
    • email_verified

      string / ISO-8601
      optional
    • first_name

      string
      optional
    • github

      string
      optional
    • id

      string / UUID
      optional
    • image

      string / URL
      optional
    • last_name

      string
      optional
    • name

      string
      optional
    • phone

      string / Phone Number
      optional
    • role

      string
      optional
      Possible values
      • admin:  Admins can do anything in the org.
      • member:  Members of an org can not modify an org, but they belong in the org.
      • service_account:  A service account role.
    • updated_at

      string / ISO-8601
      optional
post
/org/members
$ curl -X POST "https://api.zoo.dev/org/members" \
	--header "Authorization: Bearer $TOKEN" \
	--header "Content-Type: application/json" \
	--data '{
  "email": "hklnJE@0QWKIJVqP.com",
  "role": "member"
}'
201 Created
Response
{
  "company": "lsNDhAYNrx40wOdJh4UWcvu",
  "created_at": "2025-01-07T20:43:52.495Z",
  "discord": "I4",
  "email": "fJp@.com",
  "email_verified": "2025-01-07T20:43:52.495Z",
  "first_name": "dyiFsVYBDy19yD",
  "github": "f3VMsZUfe7ph",
  "id": "f71b362a-1772-4d71-9390-12e88de14c86",
  "image": "https://qz9R6bsnsjC.62NIa5W.com//0",
  "last_name": "Mr",
  "name": "toUemWVA1dRseO55M",
  "phone": "+1-882-140-1041",
  "role": "admin",
  "updated_at": "2025-01-07T20:43:52.495Z"
}