Skip to main content
POST
/
api
/
tools
/
v1
/
workspaces
/
{workspaceId}
/
members
Add a user or team member to a workspace
curl --request POST \
  --url https://app.govly.com/api/tools/v1/workspaces/{workspaceId}/members \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "userId": "<string>",
  "teamId": "<string>",
  "notifications": "<string>",
  "state": "<string>"
}
'
{
  "data": {
    "id": "<string>",
    "member": {
      "id": "<string>",
      "name": "<string>",
      "email": "jsmith@example.com",
      "organization": {
        "id": "<string>",
        "name": "<string>"
      }
    },
    "state": "<string>",
    "notifications": "<string>",
    "createdAt": "2023-11-07T05:31:56Z",
    "updatedAt": "2023-11-07T05:31:56Z"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

workspaceId
string
required

Body

application/json
userId
string
teamId
string
notifications
string
state
string

Response

Created workspace membership

data
object
required