Workspace

An API key belongs to one workspace and acts as one user. These endpoints return the workspace, with its plan and its features, and the user of the key.

The workspace object

  • Name
    id
    Type
    string
    Description

    The id of the workspace.

  • Name
    name
    Type
    string
    Description

    The name of the workspace.

  • Name
    plan
    Type
    string
    Description

    The plan of the workspace: free, pro or agency.

  • Name
    features
    Type
    object
    Description

    The features that depend on the plan, by name. Each one has included, true when the plan of the workspace includes it, and requiredPlan, the lowest plan including it when it isn't included (else null).

The features:

FeatureWhat it allows
formHideBrandingHiding the BackMyForm branding of the forms (showBranding: false).
formCustomNotificationCustomizing the email sent for each submission: recipients, sender name, subject, body and reply-to.
formRespondentNotificationSending an email to the visitor who submitted a form.
formNoFileSizeLimitFiles larger than the limit of the free plan.
formPartialSubmissionsThe partial submissions, and the submission.started and submission.abandoned webhook events.
workspaceTeamInviting members to the workspace.

GET /v1/workspace

Retrieve the workspace

Returns the workspace of the key. Needs a key of all the forms.

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

Request

Response

{
	"id": "1f0b2c4a-7e8f-6a9b-8c0d-1e2f3a4b5c6d",
	"name": "Acme",
	"plan": "free",
	"features": {
		"formHideBranding": { "included": false, "requiredPlan": "pro" },
		"formCustomNotification": { "included": false, "requiredPlan": "pro" },
		"formRespondentNotification": { "included": false, "requiredPlan": "pro" },
		"formNoFileSizeLimit": { "included": false, "requiredPlan": "pro" },
		"formPartialSubmissions": { "included": false, "requiredPlan": "pro" },
		"workspaceTeam": { "included": false, "requiredPlan": "pro" }
	}
}

The user object

  • Name
    id
    Type
    string
    Description

    The id of the user.

  • Name
    email
    Type
    string
    Description

    The email address of the user.

  • Name
    firstName
    Type
    string | null
    Description

    The first name of the user.

  • Name
    lastName
    Type
    string | null
    Description

    The last name of the user.


GET /v1/me

Retrieve the user of the key

Returns the user the key acts as: the user who created it. Works with any key: a good way to check that a key is valid.

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

Request

Response

{
	"id": "1f0b2c4d-8e9a-6f13-a2b4-c6d8e0f1a2b3",
	"email": "[email protected]",
	"firstName": "Jane",
	"lastName": "Doe"
}