EaserixDocs
DevelopersAPI referenceAuth & accountsDomains

Accept the suggestion

Joins as member and returns an access token already switched into the workspace. Idempotent for an existing member. The user is also enrolled in the workspace's "General" team in the same transaction, so the returned token's teams[] already carries it.

View as Markdown
POST
/v1/me/discoverable/join
AuthorizationBearer <token>

In: header

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/v1/me/discoverable/join"
{  "workspace": {    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "slug": "string",    "name": "string",    "kind": "string",    "avatar_url": "string",    "role": "string",    "permissions": [      "string"    ],    "tools": [      "string"    ],    "teams": [      {        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",        "slug": "string",        "name": "string",        "my_role": "string"      }    ]  },  "access_token": "string",  "expires_at": "2019-08-24T14:15:22Z"}