const url = 'https://platform.fomr.io/v1/me';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://platform.fomr.io/v1/me \ --header 'Authorization: Bearer <token>'Returns the organization, member, and credential behind the calling token. Costs 1 API credit.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”Default Response
object
The organization every call with this credential acts on.
object
The public ID of the organization.
The organization name.
The effective subscription plan of the organization.
The organization member the credential belongs to.
object
The name of the organization role the member holds.
The permissions the role carries right now. They are resolved on every request, so a role change takes effect immediately.
object
Access to forms.
Access to Private Templates.
Access to uploaded images and files.
Access to workflows.
Whether the member can publish and unpublish forms.
Whether the member can connect and disconnect integrations.
Access to the organization members list.
Access to custom domains.
Whether the member can manage the subscription.
Whether the member can change organization settings.
Whether the member can create, rename, and delete workspaces.
Whether the member can create and use Personal Access Tokens.
object
Names the credential the caller authenticated with.
Example
{ "organization": { "plan": "free" }, "member": { "permissions": { "forms": "none", "templates": "none", "assets": "none", "workflows": "none", "form_publish": false, "integration_management": false, "team_members": "none", "domains": "none", "billing": false, "organization_settings": false, "workspace_management": false, "personal_access_tokens": false } }, "credential": { "kind": "personal_access_token" }}Default Response
object
The stable code to branch on.
A human-readable explanation. Not part of the contract; never branch on it.
The ID of the failed request, also sent as the X-Request-Id response header.
Example
{ "code": "INVALID_INPUT"}Default Response
object
The stable code to branch on.
A human-readable explanation. Not part of the contract; never branch on it.
The ID of the failed request, also sent as the X-Request-Id response header.
Example
{ "code": "INVALID_INPUT"}A rejected call. The organization budget names the policy it rejected the call under; the request floor that bounds hammering sends the envelope alone.
object
The stable code to branch on.
A human-readable explanation. Not part of the contract; never branch on it.
The ID of the failed request, also sent as the X-Request-Id response header.
The policy that rejected the call.
The plan whose numbers were applied.
The policy limit in credits.
Credits already spent in the open window.
Credits still available under the policy.
What the rejected call would have cost.
How long the policy window lasts.
When the window that rejected the call ends.
Seconds to wait before retrying. Also sent as the Retry-After response header.
object
The stable code to branch on.
A human-readable explanation. Not part of the contract; never branch on it.
The ID of the failed request, also sent as the X-Request-Id response header.
Example
{ "code": "INVALID_INPUT", "policy": "minute", "plan": "free"}Default Response
object
The stable code to branch on.
A human-readable explanation. Not part of the contract; never branch on it.
The ID of the failed request, also sent as the X-Request-Id response header.
Example
{ "code": "INVALID_INPUT"}