HydraCore
API by router

Team

List Invitations

GET
/v1/team/invitations

Authorization

HTTPBearer
headerAuthorizationBearer <token>

Header Parameters

X-Api-Key?string|null

Response Body

Successful Response

application/json
  1. response
[index: integer]?
Example Request
curl -X GET 'https://example.com/v1/team/invitations'
Example Response
[  {    "created_at": "2019-08-24T14:15:22Z",    "email": "string",    "expires_at": "2019-08-24T14:15:22Z",    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "invited_by": "0fdabe0c-eb7c-440a-96d2-2c65906c3777",    "invited_by_email": "string",    "role": "string",    "status": "string",    "token": "string"  }]

Accept Invitation

POST
/v1/team/invitations/accept

Authorization

HTTPBearer
headerAuthorizationBearer <token>

Request Body

application/json
  1. body
token*Token
Length1 <= length <= 64

Response Body

Successful Response

application/json
  1. response
created_at*Created At
Formatdate-time
display_name?string|null
email*Email
is_active*Is Active
is_admin*Is Admin
last_login?|null
team_role*Team Role
user_id*User Id
Formatuuid
Example Request
curl -X POST 'https://example.com/v1/team/invitations/accept' \  -H 'Content-Type: application/json' \  -d '{  "token": "string"}'
Example Response
{  "created_at": "2019-08-24T14:15:22Z",  "display_name": "string",  "email": "string",  "is_active": true,  "is_admin": true,  "last_login": "2019-08-24T14:15:22Z",  "team_role": "string",  "user_id": "a169451c-8525-4352-b8ca-070dd449a1a5"}

Revoke Invitation

DELETE
/v1/team/invitations/{invitation_id}

Authorization

HTTPBearer
headerAuthorizationBearer <token>

Path Parameters

invitation_id*Invitation Id
Formatuuid

Header Parameters

X-Api-Key?string|null

Response Body

Successful Response

Example Request
curl -X DELETE 'https://example.com/v1/team/invitations/497f6eca-6276-4993-bfeb-53cbbbba6f08'
Example Response
Empty

Invite Member

POST
/v1/team/invite

Authorization

HTTPBearer
headerAuthorizationBearer <token>

Header Parameters

X-Api-Key?string|null

Request Body

application/json
  1. body
email*Email
Formatemail
role?Role

Team role for the invitee

Default"member"

Response Body

Successful Response

application/json
  1. response
created_at*Created At
Formatdate-time
email*Email
expires_at*Expires At
Formatdate-time
id*Id
Formatuuid
invited_by?|null
invited_by_email?string|null
role*Role
status*Status
token?string|null
Example Request
curl -X POST 'https://example.com/v1/team/invite' \  -H 'Content-Type: application/json' \  -d '{  "email": "user@example.com"}'
Example Response
{  "created_at": "2019-08-24T14:15:22Z",  "email": "string",  "expires_at": "2019-08-24T14:15:22Z",  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "invited_by": "0fdabe0c-eb7c-440a-96d2-2c65906c3777",  "invited_by_email": "string",  "role": "string",  "status": "string",  "token": "string"}

List Team Members

GET
/v1/team/members

Authorization

HTTPBearer
headerAuthorizationBearer <token>

Header Parameters

X-Api-Key?string|null

Response Body

Successful Response

application/json
  1. response
[index: integer]?
Example Request
curl -X GET 'https://example.com/v1/team/members'
Example Response
[  {    "created_at": "2019-08-24T14:15:22Z",    "display_name": "string",    "email": "string",    "is_active": true,    "is_admin": true,    "last_login": "2019-08-24T14:15:22Z",    "team_role": "string",    "user_id": "a169451c-8525-4352-b8ca-070dd449a1a5"  }]

Remove Member

DELETE
/v1/team/members/{member_id}

Authorization

HTTPBearer
headerAuthorizationBearer <token>

Path Parameters

member_id*Member Id
Formatuuid

Header Parameters

X-Api-Key?string|null

Response Body

Successful Response

Example Request
curl -X DELETE 'https://example.com/v1/team/members/497f6eca-6276-4993-bfeb-53cbbbba6f08'
Example Response
Empty

Update Member Role

PATCH
/v1/team/members/{member_id}/role

Authorization

HTTPBearer
headerAuthorizationBearer <token>

Path Parameters

member_id*Member Id
Formatuuid

Header Parameters

X-Api-Key?string|null

Request Body

application/json
  1. body
team_role*Team Role

New team role

Response Body

Successful Response

application/json
  1. response
created_at*Created At
Formatdate-time
display_name?string|null
email*Email
is_active*Is Active
is_admin*Is Admin
last_login?|null
team_role*Team Role
user_id*User Id
Formatuuid
Example Request
curl -X PATCH 'https://example.com/v1/team/members/497f6eca-6276-4993-bfeb-53cbbbba6f08/role' \  -H 'Content-Type: application/json' \  -d '{  "team_role": "string"}'
Example Response
{  "created_at": "2019-08-24T14:15:22Z",  "display_name": "string",  "email": "string",  "is_active": true,  "is_admin": true,  "last_login": "2019-08-24T14:15:22Z",  "team_role": "string",  "user_id": "a169451c-8525-4352-b8ca-070dd449a1a5"}