const url = ' https://platform.fomr.io/v1/workspaces ' ;
const options = {method: ' GET ' , headers: {Authorization: ' Bearer <token> ' }} ;
const response = await fetch ( url , options );
const data = await response . json ();
--url https://platform.fomr.io/v1/workspaces \
--header ' Authorization: Bearer <token> '
Lists the active workspaces of the organization, the Default Workspace first, then in sidebar order. Use a workspace public ID to filter the form list, to create or generate a form in that workspace, or to move a form. Needs forms:read or templates:read. Costs 1 API credit.
Media type application/json
object Every active workspace of the organization, the Default Workspace first, then in sidebar order.
Array<object>
object The public ID of the workspace. Use it in the other workspace calls and wherever a call takes workspace_public_id.
string
>= 4 characters <= 4 characters
Workspace name shown in the app sidebar.
string
Whether this is the Default Workspace, which always exists, always comes first, and cannot be deleted.
boolean
Color key of the workspace icon in the app.
string
Allowed values: zinc red orange amber green teal blue indigo violet pink
Any of:
string
Allowed values: home briefcase building users rocket heart star bolt school shopping-cart calendar chart-bar flask palette world mail message code camera music
Media type application/json
object The stable code to branch on.
string
Allowed values: INVALID_INPUT UNAUTHORIZED PERSONAL_ACCESS_TOKEN_EXPIRED PERSONAL_ACCESS_TOKEN_REVOKED PLAN_LIMIT_REACHED PRO_FEATURE_REQUIRED FORBIDDEN FORM_PUBLISH_EMAIL_UNVERIFIED ORGANIZATION_MEMBER_BLOCKED PERSONAL_ACCESS_TOKEN_NOT_PERMITTED NOT_FOUND FORM_NOT_PUBLISHED NO_DRAFT_DURING_PUBLISH FORM_ARCHIVED FORM_CONVERSION_BLOCKED FORM_PUBLISH_REVISION_CONFLICT PAYLOAD_TOO_LARGE FORM_PUBLISH_VALIDATION_FAILED FORM_SAFETY_REJECTED TOO_MANY_REQUESTS API_COOLDOWN SERVER AI_SERVICE_UNAVAILABLE SERVICE_UNAVAILABLE
A human-readable explanation. Not part of the contract; never branch on it.
string
The ID of the failed request, also sent as the X-Request-Id response header.
string
Media type application/json
object The stable code to branch on.
string
Allowed values: INVALID_INPUT UNAUTHORIZED PERSONAL_ACCESS_TOKEN_EXPIRED PERSONAL_ACCESS_TOKEN_REVOKED PLAN_LIMIT_REACHED PRO_FEATURE_REQUIRED FORBIDDEN FORM_PUBLISH_EMAIL_UNVERIFIED ORGANIZATION_MEMBER_BLOCKED PERSONAL_ACCESS_TOKEN_NOT_PERMITTED NOT_FOUND FORM_NOT_PUBLISHED NO_DRAFT_DURING_PUBLISH FORM_ARCHIVED FORM_CONVERSION_BLOCKED FORM_PUBLISH_REVISION_CONFLICT PAYLOAD_TOO_LARGE FORM_PUBLISH_VALIDATION_FAILED FORM_SAFETY_REJECTED TOO_MANY_REQUESTS API_COOLDOWN SERVER AI_SERVICE_UNAVAILABLE SERVICE_UNAVAILABLE
A human-readable explanation. Not part of the contract; never branch on it.
string
The ID of the failed request, also sent as the X-Request-Id response header.
string
required_permission required
A rejected call. The organization budget names the policy it rejected the call under; the request floor that bounds hammering sends the envelope alone.
Media type application/json
Any of:
object The stable code to branch on.
string
Allowed values: INVALID_INPUT UNAUTHORIZED PERSONAL_ACCESS_TOKEN_EXPIRED PERSONAL_ACCESS_TOKEN_REVOKED PLAN_LIMIT_REACHED PRO_FEATURE_REQUIRED FORBIDDEN FORM_PUBLISH_EMAIL_UNVERIFIED ORGANIZATION_MEMBER_BLOCKED PERSONAL_ACCESS_TOKEN_NOT_PERMITTED NOT_FOUND FORM_NOT_PUBLISHED NO_DRAFT_DURING_PUBLISH FORM_ARCHIVED FORM_CONVERSION_BLOCKED FORM_PUBLISH_REVISION_CONFLICT PAYLOAD_TOO_LARGE FORM_PUBLISH_VALIDATION_FAILED FORM_SAFETY_REJECTED TOO_MANY_REQUESTS API_COOLDOWN SERVER AI_SERVICE_UNAVAILABLE SERVICE_UNAVAILABLE
A human-readable explanation. Not part of the contract; never branch on it.
string
The ID of the failed request, also sent as the X-Request-Id response header.
string
The policy that rejected the call.
string
Allowed values: minute burst
The plan whose numbers were applied.
string
Allowed values: free pro
The policy limit in credits.
integer
>= -9007199254740991 <= 9007199254740991
Credits already spent in the open window.
integer
>= -9007199254740991 <= 9007199254740991
Credits still available under the policy.
integer
>= -9007199254740991 <= 9007199254740991
What the rejected call would have cost.
integer
>= -9007199254740991 <= 9007199254740991
How long the policy window lasts.
integer
>= -9007199254740991 <= 9007199254740991
Any of:
string format: date-time
/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$/
When the window that rejected the call ends.
string format: date-time
/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$/
retry_after_seconds required
Seconds to wait before retrying. Also sent as the Retry-After response header.
integer
>= -9007199254740991 <= 9007199254740991
object The stable code to branch on.
string
Allowed values: INVALID_INPUT UNAUTHORIZED PERSONAL_ACCESS_TOKEN_EXPIRED PERSONAL_ACCESS_TOKEN_REVOKED PLAN_LIMIT_REACHED PRO_FEATURE_REQUIRED FORBIDDEN FORM_PUBLISH_EMAIL_UNVERIFIED ORGANIZATION_MEMBER_BLOCKED PERSONAL_ACCESS_TOKEN_NOT_PERMITTED NOT_FOUND FORM_NOT_PUBLISHED NO_DRAFT_DURING_PUBLISH FORM_ARCHIVED FORM_CONVERSION_BLOCKED FORM_PUBLISH_REVISION_CONFLICT PAYLOAD_TOO_LARGE FORM_PUBLISH_VALIDATION_FAILED FORM_SAFETY_REJECTED TOO_MANY_REQUESTS API_COOLDOWN SERVER AI_SERVICE_UNAVAILABLE SERVICE_UNAVAILABLE
A human-readable explanation. Not part of the contract; never branch on it.
string
The ID of the failed request, also sent as the X-Request-Id response header.
string
Media type application/json
object The stable code to branch on.
string
Allowed values: INVALID_INPUT UNAUTHORIZED PERSONAL_ACCESS_TOKEN_EXPIRED PERSONAL_ACCESS_TOKEN_REVOKED PLAN_LIMIT_REACHED PRO_FEATURE_REQUIRED FORBIDDEN FORM_PUBLISH_EMAIL_UNVERIFIED ORGANIZATION_MEMBER_BLOCKED PERSONAL_ACCESS_TOKEN_NOT_PERMITTED NOT_FOUND FORM_NOT_PUBLISHED NO_DRAFT_DURING_PUBLISH FORM_ARCHIVED FORM_CONVERSION_BLOCKED FORM_PUBLISH_REVISION_CONFLICT PAYLOAD_TOO_LARGE FORM_PUBLISH_VALIDATION_FAILED FORM_SAFETY_REJECTED TOO_MANY_REQUESTS API_COOLDOWN SERVER AI_SERVICE_UNAVAILABLE SERVICE_UNAVAILABLE
A human-readable explanation. Not part of the contract; never branch on it.
string
The ID of the failed request, also sent as the X-Request-Id response header.
string