teams

Embed
Preview of the card
<a href="https://linkyhub.net/docs/ref-teams"><img src="https://linkyhub.net/docs/_api/public/orgs/2fd2a4b7-b627-4925-af1e-1c51bf890403/spaces/c4b920fb-a433-40b5-b354-ff84bf0c3eb1/pages/62b33793-4486-4cff-9977-c30d9ce47676/social-card.svg?v=3e7ae33eec8b" alt="teams" width="600" height="315"></a>
GEThttps://linkyhub.net/api/v3/teamsScope teams:read

Teams the creator belongs to, and their role in each.

Code samples

cURL
curl -X GET "https://linkyhub.net/api/v3/teams" \
  -H "Authorization: Bearer $LINKYHUB_API_KEY"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 Done.
Example
{
  "data": [
    {}
  ]
}
Schema
dataobject[]required
Headers
RateLimit-Limitinteger
Requests allowed in the current window.
RateLimit-Remaininginteger
Requests left in the current window.
RateLimit-Resetinteger
Seconds until the window resets.
default An error.
Example
{
  "error": "string",
  "message": "string"
}
Schema
errorstringrequired
A stable code to branch on, e.g. insufficient_scope.
messagestringrequired
A sentence to show a person.
Headers
RateLimit-Limitinteger
Requests allowed in the current window.
RateLimit-Remaininginteger
Requests left in the current window.
RateLimit-Resetinteger
Seconds until the window resets.
POSThttps://linkyhub.net/api/v3/teamsScope teams:write

Create a team, owned by the creator (Business).

Request body

application/json
namestringrequired
{
  "name": "string"
}

Code samples

cURL
curl -X POST "https://linkyhub.net/api/v3/teams" \
  -H "Authorization: Bearer $LINKYHUB_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name":"string"}'
TypeScript
Python
Go
PHP
Ruby
Java

Responses

201 Done.
{}
Headers
RateLimit-Limitinteger
Requests allowed in the current window.
RateLimit-Remaininginteger
Requests left in the current window.
RateLimit-Resetinteger
Seconds until the window resets.
default An error.

Same as default · GET /teams

Headers
RateLimit-Limitinteger
Requests allowed in the current window.
RateLimit-Remaininginteger
Requests left in the current window.
RateLimit-Resetinteger
Seconds until the window resets.
GEThttps://linkyhub.net/api/v3/teams/{teamId}Scope teams:read

A team’s members and pending invites.

Parameters

teamIdstringpathrequired

Code samples

cURL
curl -X GET "https://linkyhub.net/api/v3/teams/{teamId}" \
  -H "Authorization: Bearer $LINKYHUB_API_KEY"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 Done.
{}
Headers
RateLimit-Limitinteger
Requests allowed in the current window.
RateLimit-Remaininginteger
Requests left in the current window.
RateLimit-Resetinteger
Seconds until the window resets.
default An error.

Same as default · GET /teams

Headers
RateLimit-Limitinteger
Requests allowed in the current window.
RateLimit-Remaininginteger
Requests left in the current window.
RateLimit-Resetinteger
Seconds until the window resets.
DELETEhttps://linkyhub.net/api/v3/teams/{teamId}Scope teams:write

Delete a team. Its profiles survive, detached from it.

Parameters

teamIdstringpathrequired

Code samples

cURL
curl -X DELETE "https://linkyhub.net/api/v3/teams/{teamId}" \
  -H "Authorization: Bearer $LINKYHUB_API_KEY"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 Done.
{}
Headers
RateLimit-Limitinteger
Requests allowed in the current window.
RateLimit-Remaininginteger
Requests left in the current window.
RateLimit-Resetinteger
Seconds until the window resets.
default An error.

Same as default · GET /teams

Headers
RateLimit-Limitinteger
Requests allowed in the current window.
RateLimit-Remaininginteger
Requests left in the current window.
RateLimit-Resetinteger
Seconds until the window resets.
PATCHhttps://linkyhub.net/api/v3/teams/{teamId}Scope teams:write

Rename a team.

Parameters

teamIdstringpathrequired

Request body

application/json
namestringrequired
{
  "name": "string"
}

Code samples

cURL
curl -X PATCH "https://linkyhub.net/api/v3/teams/{teamId}" \
  -H "Authorization: Bearer $LINKYHUB_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name":"string"}'
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 Done.
{}
Headers
RateLimit-Limitinteger
Requests allowed in the current window.
RateLimit-Remaininginteger
Requests left in the current window.
RateLimit-Resetinteger
Seconds until the window resets.
default An error.

Same as default · GET /teams

Headers
RateLimit-Limitinteger
Requests allowed in the current window.
RateLimit-Remaininginteger
Requests left in the current window.
RateLimit-Resetinteger
Seconds until the window resets.
POSThttps://linkyhub.net/api/v3/teams/{teamId}/invitesScope teams:write

Invite someone to a team.

Parameters

teamIdstringpathrequired

Request body

application/json
emailstringrequired
rolestringrequired
OWNER | ADMIN | EDITOR | VIEWER
{
  "email": "string",
  "role": "OWNER"
}

Code samples

cURL
curl -X POST "https://linkyhub.net/api/v3/teams/{teamId}/invites" \
  -H "Authorization: Bearer $LINKYHUB_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"email":"string","role":"OWNER"}'
TypeScript
Python
Go
PHP
Ruby
Java

Responses

201 Done.
{}
Headers
RateLimit-Limitinteger
Requests allowed in the current window.
RateLimit-Remaininginteger
Requests left in the current window.
RateLimit-Resetinteger
Seconds until the window resets.
default An error.

Same as default · GET /teams

Headers
RateLimit-Limitinteger
Requests allowed in the current window.
RateLimit-Remaininginteger
Requests left in the current window.
RateLimit-Resetinteger
Seconds until the window resets.
DELETEhttps://linkyhub.net/api/v3/teams/{teamId}/invites/{inviteId}Scope teams:write

Withdraw a pending invite.

Parameters

teamIdstringpathrequired
inviteIdstringpathrequired

Code samples

cURL
curl -X DELETE "https://linkyhub.net/api/v3/teams/{teamId}/invites/{inviteId}" \
  -H "Authorization: Bearer $LINKYHUB_API_KEY"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 Done.
{}
Headers
RateLimit-Limitinteger
Requests allowed in the current window.
RateLimit-Remaininginteger
Requests left in the current window.
RateLimit-Resetinteger
Seconds until the window resets.
default An error.

Same as default · GET /teams

Headers
RateLimit-Limitinteger
Requests allowed in the current window.
RateLimit-Remaininginteger
Requests left in the current window.
RateLimit-Resetinteger
Seconds until the window resets.
DELETEhttps://linkyhub.net/api/v3/teams/{teamId}/members/{memberUserId}Scope teams:write

Remove a member from a team.

Parameters

teamIdstringpathrequired
memberUserIdstringpathrequired

Code samples

cURL
curl -X DELETE "https://linkyhub.net/api/v3/teams/{teamId}/members/{memberUserId}" \
  -H "Authorization: Bearer $LINKYHUB_API_KEY"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 Done.
{}
Headers
RateLimit-Limitinteger
Requests allowed in the current window.
RateLimit-Remaininginteger
Requests left in the current window.
RateLimit-Resetinteger
Seconds until the window resets.
default An error.

Same as default · GET /teams

Headers
RateLimit-Limitinteger
Requests allowed in the current window.
RateLimit-Remaininginteger
Requests left in the current window.
RateLimit-Resetinteger
Seconds until the window resets.
PATCHhttps://linkyhub.net/api/v3/teams/{teamId}/members/{memberUserId}Scope teams:write

Change a member’s role.

Parameters

teamIdstringpathrequired
memberUserIdstringpathrequired

Request body

application/json
rolestringrequired
OWNER | ADMIN | EDITOR | VIEWER
{
  "role": "OWNER"
}

Code samples

cURL
curl -X PATCH "https://linkyhub.net/api/v3/teams/{teamId}/members/{memberUserId}" \
  -H "Authorization: Bearer $LINKYHUB_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"role":"OWNER"}'
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 Done.
{}
Headers
RateLimit-Limitinteger
Requests allowed in the current window.
RateLimit-Remaininginteger
Requests left in the current window.
RateLimit-Resetinteger
Seconds until the window resets.
default An error.

Same as default · GET /teams

Headers
RateLimit-Limitinteger
Requests allowed in the current window.
RateLimit-Remaininginteger
Requests left in the current window.
RateLimit-Resetinteger
Seconds until the window resets.
GEThttps://linkyhub.net/api/v3/teams/{teamId}/brandingScope teams:read

A team’s brand kit: logo and colours.

Parameters

teamIdstringpathrequired

Code samples

cURL
curl -X GET "https://linkyhub.net/api/v3/teams/{teamId}/branding" \
  -H "Authorization: Bearer $LINKYHUB_API_KEY"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 Done.
{}
Headers
RateLimit-Limitinteger
Requests allowed in the current window.
RateLimit-Remaininginteger
Requests left in the current window.
RateLimit-Resetinteger
Seconds until the window resets.
default An error.

Same as default · GET /teams

Headers
RateLimit-Limitinteger
Requests allowed in the current window.
RateLimit-Remaininginteger
Requests left in the current window.
RateLimit-Resetinteger
Seconds until the window resets.

Updated