Members

The members of a workspace share its forms and their submissions. Each member has a role: the owner, the admins, who manage the workspace, and the members.

These endpoints need a key of all the forms. Inviting members and changing their role need the workspaceTeam feature of the plan: see Workspace.

The member object

  • Name
    id
    Type
    string
    Description

    The id of the member in the workspace.

  • Name
    email
    Type
    string
    Description

    The email address of the member.

  • Name
    firstName
    Type
    string | null
    Description

    The first name of the member; null until an invited member signs up.

  • Name
    lastName
    Type
    string | null
    Description

    The last name of the member.

  • Name
    role
    Type
    string
    Description

    owner, admin or member. See Authentication for what each role can do.

  • Name
    invitation
    Type
    object | null
    Description

    The invitation of the member; null for the owner. validatedAt is when it was accepted (null while it is pending), validUntil when it expires, sentAt when it was last sent and invitedByUserId who sent it.


GET /v1/members

List all members

Returns the members of the workspace, and the pending invitations. The list is not paginated.

GET
/v1/members
curl https://api.backmyform.com/v1/members \
  -H "Authorization: Bearer $BACKMYFORM_API_KEY"

Request

Response

[
	{
		"id": "1f0b2c55-0d1e-6f2a-9b3c-5d6e7f8a9b0c",
		"email": "[email protected]",
		"firstName": "Jane",
		"lastName": "Doe",
		"role": "owner",
		"invitation": null
	},
	{
		"id": "1f0b2c55-1e2f-6a3b-8c4d-6e7f8a9b0c1d",
		"email": "[email protected]",
		"firstName": null,
		"lastName": null,
		"role": "member",
		"invitation": {
			"validatedAt": null,
			"validUntil": "2026-12-04T09:00:00.000Z",
			"sentAt": "2026-11-20T09:00:00.000Z",
			"invitedByUserId": "1f0b2c4d-8e9a-6f13-a2b4-c6d8e0f1a2b3"
		}
	}
]

POST /v1/members

Invite a member

Sends an invitation by email, valid for 14 days, and returns the invited member. Inviting a pending member again sends the invitation again. Needs the admin or owner role.

Required parameters

  • Name
    email
    Type
    string
    Required
    Description

    The email address to invite.

  • Name
    role
    Type
    string
    Required
    Description

    member or admin.

An address that already joined the workspace is refused with a 400 status and the resource_already_exists code.

POST
/v1/members
curl https://api.backmyform.com/v1/members \
  -H "Authorization: Bearer $BACKMYFORM_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "email": "[email protected]", "role": "member" }'

Request

Response

{
	"id": "1f0b2c55-1e2f-6a3b-8c4d-6e7f8a9b0c1d",
	"email": "[email protected]",
	"firstName": null,
	"lastName": null,
	"role": "member",
	"invitation": {
		"validatedAt": null,
		"validUntil": "2026-12-04T09:00:00.000Z",
		"sentAt": "2026-11-20T09:00:00.000Z",
		"invitedByUserId": "1f0b2c4d-8e9a-6f13-a2b4-c6d8e0f1a2b3"
	}
}

PUT /v1/members/:id

Change the role of a member

Changes the role of a member, and returns the member. The owner's role can't change. Needs the admin or owner role.

Required parameters

  • Name
    role
    Type
    string
    Required
    Description

    member or admin.

PUT
/v1/members/:id
curl -X PUT https://api.backmyform.com/v1/members/1f0b2c55-1e2f-6a3b-8c4d-6e7f8a9b0c1d \
  -H "Authorization: Bearer $BACKMYFORM_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "role": "admin" }'

Request

Response

{
	"id": "1f0b2c55-1e2f-6a3b-8c4d-6e7f8a9b0c1d",
	"email": "[email protected]",
	"role": "admin"
}

DELETE /v1/members/:id

Remove a member

Removes a member from the workspace, or cancels a pending invitation. The member's API keys are deleted. The owner can't be removed. Needs the admin or owner role.

DELETE
/v1/members/:id
curl -X DELETE https://api.backmyform.com/v1/members/1f0b2c55-1e2f-6a3b-8c4d-6e7f8a9b0c1d \
  -H "Authorization: Bearer $BACKMYFORM_API_KEY"

Request

Response

{}