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,prooragency.
- 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, andrequiredPlan, the lowest plan including it when it isn't included (elsenull).
The features:
| Feature | What it allows |
|---|---|
formHideBranding | Hiding the BackMyForm branding of the forms (showBranding: false). |
formCustomNotification | Customizing the email sent for each submission: recipients, sender name, subject, body and reply-to. |
formRespondentNotification | Sending an email to the visitor who submitted a form. |
formNoFileSizeLimit | Files larger than the limit of the free plan. |
formPartialSubmissions | The partial submissions, and the submission.started and submission.abandoned webhook events. |
workspaceTeam | Inviting 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/workspacecurl 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/mecurl 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"
}