REST API overview

API · v1.4.0

Members

4 endpoints. Paths are relative to /api/v1 on your own instance; authentication is described on the overview page.

GET /workspaces/{workspace}/members

Parameters

NameInTypeDescription
workspacerequiredpathstring

The workspace slug

cursorquerystring

Opaque cursor taken from meta.next_cursor of the previous page; omit it for the first page.

limitqueryinteger

Page size.

Responses

  • 200
  • 403 Authorization error
  • 404 Not found
  • 401 Unauthenticated

POST /workspaces/{workspace}/members

Invites an address into the workspace. Every address gets the same answer and the same e-mail, whether or not an account exists for it; only an address that is already a member is refused. Inviting the same address again replaces the pending invitation and its link

Parameters

NameInTypeDescription
workspacerequiredpathstring

The workspace slug

Request body

NameTypeDescription
emailrequiredstring
rolerequiredWorkspaceRole (owner, admin, editor, viewer)
localeen | hu

The language of the e-mail; the admin interface sends its own. The invitee's language is unknown here (they may have no account), so the inviter's is the best guess.

Responses

  • 202
  • 403 Authorization error
  • 422 Validation error
  • 404 Not found
  • 401 Unauthenticated

PATCH /workspaces/{workspace}/members/{user}

Parameters

NameInTypeDescription
workspacerequiredpathstring

The workspace slug

userrequiredpathinteger

The user ID

Request body

NameType
rolerequiredWorkspaceRole (owner, admin, editor, viewer)

Responses

  • 200
  • 403 Authorization error
  • 422 Validation error
  • 404 Not found
  • 401 Unauthenticated

DELETE /workspaces/{workspace}/members/{user}

Parameters

NameInTypeDescription
workspacerequiredpathstring

The workspace slug

userrequiredpathinteger

The user ID

Responses

  • 204 No content
  • 403 Authorization error
  • 422 Validation error
  • 404 Not found
  • 401 Unauthenticated