Light mode version of Land Your Home
V1Teams

Get Teams

GET
/v1/teams

Teams the user is an active member of, with their role in each. Sets teamId to the team they administer.

Required variables:

  • baseUrl
  • apiKey (needs teams:read)
  • userToken

Authorization

bearerAuth userTokenAuth
AuthorizationBearer <token>

Partner API key (lyh_...): identifies the calling partner, its scopes and rate limit.

In: header

X-User-Token<token>

The user's OAuth 2.1 access token, issued by Land Your Home's OAuth server to this partner's OAuth client. Requests run as this user.

In: header

Response Body

application/json

application/json

curl -X GET "https://example.com/v1/teams"
{  "data": [    {      "id": "00000000-0000-0000-0000-000000000001",      "name": "Designibl",      "role": "admin"    }  ],  "nextCursor": null}