For the complete documentation index, see llms.txt. This page is also available as Markdown.

API Reference

Management API

Authorization

Get Auth Requirements

get
/api/authorize

Returns the authorization requirements for the given entity type (for OAuth this is typically a redirect url; for API-key/basic auth it is a jsonSchema/uiSchema form definition).

Authorizations
AuthorizationstringRequired

Bearer token for the acting user, when the Frigg app's getUserId resolves the user from an Authorization header.

Query parameters
entityTypestringRequired

The API Module / entity type to authorize.

Example: hubspot
statestringOptional

Optional OAuth state value forwarded into the authorization-requirements lookup.

Example: abc123
Header parameters
x-frigg-appuseridstringOptional

Identifies the acting end user, when the Frigg app's getUserId resolves the user from this header instead of a bearer token.

Example: {{appUserId}}
x-frigg-apporgidstringOptional

Identifies the acting end user's organization (app-specific).

Example: {{appOrgId}}
Responses
200

Authorization requirements.

application/json

For OAuth flows, typically { type, url }. For credential/form flows, typically { type, data: { jsonSchema, uiSchema } }.

typestringOptionalExample: oauth2
urlstringOptionalExample: https://app.example.com/oauth/authorize?client_id=...
Other propertiesanyOptional
get/api/authorize
200

Authorization requirements.

Auth (Callback)

post
/api/authorize

Processes an authorization callback (e.g. an OAuth code exchange or submitted credential form) and creates/links the credential and entity for the acting user.

Authorizations
AuthorizationstringRequired

Bearer token for the acting user, when the Frigg app's getUserId resolves the user from an Authorization header.

Header parameters
x-frigg-appuseridstringOptional

Identifies the acting end user, when the Frigg app's getUserId resolves the user from this header instead of a bearer token.

Example: {{appUserId}}
x-frigg-apporgidstringOptional

Identifies the acting end user's organization (app-specific).

Example: {{appOrgId}}
Body
entityTypestringRequiredExample: hubspot
Responses
200

Credential and entity created/linked.

application/json
typestringOptionalExample: hubspot
credential_idstringOptionalExample: {{generatedCredentialId}}
entity_idstringOptionalExample: {{generatedEntityId}}
Other propertiesanyOptional
post/api/authorize
200

Credential and entity created/linked.

Integrations

List Integrations

get
/api/integrations

Returns integration options, the entities the user is authorized to use, and the user's existing integrations (each annotated with its available userActions).

Authorizations
AuthorizationstringRequired

Bearer token for the acting user, when the Frigg app's getUserId resolves the user from an Authorization header.

Header parameters
x-frigg-appuseridstringOptional

Identifies the acting end user, when the Frigg app's getUserId resolves the user from this header instead of a bearer token.

Example: {{appUserId}}
x-frigg-apporgidstringOptional

Identifies the acting end user's organization (app-specific).

Example: {{appOrgId}}
Responses
200

Integration options, authorized entities, and integrations.

application/json
get/api/integrations
200

Integration options, authorized entities, and integrations.

Create Integration

post
/api/integrations

Creates an integration from a pair of entities and a config object, then runs the integration's onCreate lifecycle hook.

Authorizations
AuthorizationstringRequired

Bearer token for the acting user, when the Frigg app's getUserId resolves the user from an Authorization header.

Header parameters
x-frigg-appuseridstringOptional

Identifies the acting end user, when the Frigg app's getUserId resolves the user from this header instead of a bearer token.

Example: {{appUserId}}
x-frigg-apporgidstringOptional

Identifies the acting end user's organization (app-specific).

Example: {{appOrgId}}
Body
entitiesstring[]RequiredExample: ["{{yourAppEntityId}}","{{targetAppEntityId}}"]
Responses
201

The created, formatted integration.

application/json
idstringOptionalExample: {{integrationId}}
entitiesstring[]Optional
statusstring · enumOptionalPossible values:
post/api/integrations
201

The created, formatted integration.

Get Integration

get
/api/integrations/{integrationId}

Returns the integration's id, entities, status, and config.

Authorizations
AuthorizationstringRequired

Bearer token for the acting user, when the Frigg app's getUserId resolves the user from an Authorization header.

Path parameters
integrationIdstringRequired

The integration's id.

Example: {{integrationId}}
Header parameters
x-frigg-appuseridstringOptional

Identifies the acting end user, when the Frigg app's getUserId resolves the user from this header instead of a bearer token.

Example: {{appUserId}}
x-frigg-apporgidstringOptional

Identifies the acting end user's organization (app-specific).

Example: {{appOrgId}}
Responses
200

The integration.

application/json
idstringOptionalExample: {{integrationId}}
entitiesstring[]Optional
statusstring · enumOptionalPossible values:
get/api/integrations/{integrationId}
200

The integration.

Update Integration

patch
/api/integrations/{integrationId}

Updates an integration's config and runs the integration's onUpdate lifecycle hook.

Authorizations
AuthorizationstringRequired

Bearer token for the acting user, when the Frigg app's getUserId resolves the user from an Authorization header.

Path parameters
integrationIdstringRequired

The integration's id.

Example: {{integrationId}}
Header parameters
x-frigg-appuseridstringOptional

Identifies the acting end user, when the Frigg app's getUserId resolves the user from this header instead of a bearer token.

Example: {{appUserId}}
x-frigg-apporgidstringOptional

Identifies the acting end user's organization (app-specific).

Example: {{appOrgId}}
Body
Responses
200

The updated, formatted integration.

application/json
idstringOptionalExample: {{integrationId}}
entitiesstring[]Optional
statusstring · enumOptionalPossible values:
patch/api/integrations/{integrationId}
200

The updated, formatted integration.

Delete Integration

delete
/api/integrations/{integrationId}

Runs the integration's onDelete lifecycle hook and removes the integration for the acting user.

Authorizations
AuthorizationstringRequired

Bearer token for the acting user, when the Frigg app's getUserId resolves the user from an Authorization header.

Path parameters
integrationIdstringRequired

The integration's id.

Example: {{integrationId}}
Header parameters
x-frigg-appuseridstringOptional

Identifies the acting end user, when the Frigg app's getUserId resolves the user from this header instead of a bearer token.

Example: {{appUserId}}
x-frigg-apporgidstringOptional

Identifies the acting end user's organization (app-specific).

Example: {{appOrgId}}
Responses
204

Integration deleted. No content.

No content

delete/api/integrations/{integrationId}
204

Integration deleted. No content.

No content

Get Integration Config Options

get
/api/integrations/{integrationId}/config/options

Returns the dynamic config-options form for the integration.

Authorizations
AuthorizationstringRequired

Bearer token for the acting user, when the Frigg app's getUserId resolves the user from an Authorization header.

Path parameters
integrationIdstringRequired

The integration's id.

Example: {{integrationId}}
Header parameters
x-frigg-appuseridstringOptional

Identifies the acting end user, when the Frigg app's getUserId resolves the user from this header instead of a bearer token.

Example: {{appUserId}}
x-frigg-apporgidstringOptional

Identifies the acting end user's organization (app-specific).

Example: {{appOrgId}}
Responses
200

Config options.

application/json

A dynamic options form, typically expressed as a JSON Schema plus a UI Schema consumed by the Frigg frontend.

Other propertiesanyOptional
get/api/integrations/{integrationId}/config/options
200

Config options.

Refresh Integration Config Options

post
/api/integrations/{integrationId}/config/options/refresh

Re-evaluates the config-options form given the current (partial) config submission, e.g. to populate dependent dropdowns.

Authorizations
AuthorizationstringRequired

Bearer token for the acting user, when the Frigg app's getUserId resolves the user from an Authorization header.

Path parameters
integrationIdstringRequired

The integration's id.

Example: {{integrationId}}
Header parameters
x-frigg-appuseridstringOptional

Identifies the acting end user, when the Frigg app's getUserId resolves the user from this header instead of a bearer token.

Example: {{appUserId}}
x-frigg-apporgidstringOptional

Identifies the acting end user's organization (app-specific).

Example: {{appOrgId}}
Body
Other propertiesanyOptional
Responses
200

Refreshed config options.

application/json

A dynamic options form, typically expressed as a JSON Schema plus a UI Schema consumed by the Frigg frontend.

Other propertiesanyOptional
post/api/integrations/{integrationId}/config/options/refresh
200

Refreshed config options.

List User Actions

get
/api/integrations/{integrationId}/actions

Lists the user actions available for the integration. The route is registered with .all, so it responds to any HTTP method; GET is the typical call.

Authorizations
AuthorizationstringRequired

Bearer token for the acting user, when the Frigg app's getUserId resolves the user from an Authorization header.

Path parameters
integrationIdstringRequired

The integration's id.

Example: {{integrationId}}
Header parameters
x-frigg-appuseridstringOptional

Identifies the acting end user, when the Frigg app's getUserId resolves the user from this header instead of a bearer token.

Example: {{appUserId}}
x-frigg-apporgidstringOptional

Identifies the acting end user's organization (app-specific).

Example: {{appOrgId}}
Responses
200

Available user actions.

application/json
Other propertiesanyOptional
get/api/integrations/{integrationId}/actions
200

Available user actions.

Get User Action Options

get
/api/integrations/{integrationId}/actions/{actionId}/options

Returns the dynamic options form for a given user action.

Authorizations
AuthorizationstringRequired

Bearer token for the acting user, when the Frigg app's getUserId resolves the user from an Authorization header.

Path parameters
integrationIdstringRequired

The integration's id.

Example: {{integrationId}}
actionIdstringRequired

The user action identifier.

Example: DELETE_ALL_CUSTOM_OBJECTS
Header parameters
x-frigg-appuseridstringOptional

Identifies the acting end user, when the Frigg app's getUserId resolves the user from this header instead of a bearer token.

Example: {{appUserId}}
x-frigg-apporgidstringOptional

Identifies the acting end user's organization (app-specific).

Example: {{appOrgId}}
Responses
200

Action options.

application/json

A dynamic options form, typically expressed as a JSON Schema plus a UI Schema consumed by the Frigg frontend.

Other propertiesanyOptional
get/api/integrations/{integrationId}/actions/{actionId}/options
200

Action options.

Refresh User Action Options

post
/api/integrations/{integrationId}/actions/{actionId}/options/refresh

Re-evaluates a user action's options form given the current (partial) submission.

Authorizations
AuthorizationstringRequired

Bearer token for the acting user, when the Frigg app's getUserId resolves the user from an Authorization header.

Path parameters
integrationIdstringRequired

The integration's id.

Example: {{integrationId}}
actionIdstringRequired

The user action identifier.

Example: DELETE_ALL_CUSTOM_OBJECTS
Header parameters
x-frigg-appuseridstringOptional

Identifies the acting end user, when the Frigg app's getUserId resolves the user from this header instead of a bearer token.

Example: {{appUserId}}
x-frigg-apporgidstringOptional

Identifies the acting end user's organization (app-specific).

Example: {{appOrgId}}
Body
Other propertiesanyOptional
Responses
200

Refreshed action options.

application/json

A dynamic options form, typically expressed as a JSON Schema plus a UI Schema consumed by the Frigg frontend.

Other propertiesanyOptional
post/api/integrations/{integrationId}/actions/{actionId}/options/refresh
200

Refreshed action options.

Submit User Action

post
/api/integrations/{integrationId}/actions/{actionId}

Submits/triggers a user action on the integration (calls the integration's notify(actionId, body)). The request body is the action-specific payload.

Authorizations
AuthorizationstringRequired

Bearer token for the acting user, when the Frigg app's getUserId resolves the user from an Authorization header.

Path parameters
integrationIdstringRequired

The integration's id.

Example: {{integrationId}}
actionIdstringRequired

The user action identifier.

Example: DELETE_ALL_CUSTOM_OBJECTS
Header parameters
x-frigg-appuseridstringOptional

Identifies the acting end user, when the Frigg app's getUserId resolves the user from this header instead of a bearer token.

Example: {{appUserId}}
x-frigg-apporgidstringOptional

Identifies the acting end user's organization (app-specific).

Example: {{appOrgId}}
Body
Other propertiesanyOptional
Responses
200

Action result.

application/json
Other propertiesanyOptional
post/api/integrations/{integrationId}/actions/{actionId}
200

Action result.

Test Integration Auth

get
/api/integrations/{integrationId}/test-auth

Runs testAuth against the integration's entities and reports any authentication errors raised during the check.

Authorizations
AuthorizationstringRequired

Bearer token for the acting user, when the Frigg app's getUserId resolves the user from an Authorization header.

Path parameters
integrationIdstringRequired

The integration's id.

Example: {{integrationId}}
Header parameters
x-frigg-appuseridstringOptional

Identifies the acting end user, when the Frigg app's getUserId resolves the user from this header instead of a bearer token.

Example: {{appUserId}}
x-frigg-apporgidstringOptional

Identifies the acting end user's organization (app-specific).

Example: {{appOrgId}}
Responses
200

Authentication is healthy.

application/json
statusstringOptionalExample: ok
get/api/integrations/{integrationId}/test-auth

Entities

Create Entity

post
/api/entity

Finds or creates an entity for a previously-created credential. data.credential_id is required and must reference an existing credential.

Authorizations
AuthorizationstringRequired

Bearer token for the acting user, when the Frigg app's getUserId resolves the user from an Authorization header.

Header parameters
x-frigg-appuseridstringOptional

Identifies the acting end user, when the Frigg app's getUserId resolves the user from this header instead of a bearer token.

Example: {{appUserId}}
x-frigg-apporgidstringOptional

Identifies the acting end user's organization (app-specific).

Example: {{appOrgId}}
Body
entityTypestringRequiredExample: hubspot
Responses
200

The found or created entity.

application/json
idstringOptional
userstringOptional
namestringOptional
Other propertiesanyOptional
post/api/entity
200

The found or created entity.

Get Entity Options (by Credential)

get
/api/entity/options/{credentialId}

Returns the entity-selection options available for a credential (e.g. selectable accounts/workspaces). The credential must belong to the acting user.

Authorizations
AuthorizationstringRequired

Bearer token for the acting user, when the Frigg app's getUserId resolves the user from an Authorization header.

Path parameters
credentialIdstringRequired

The credential's id.

Example: {{credentialId}}
Query parameters
entityTypestringRequired

The API Module / entity type the credential belongs to.

Example: hubspot
Header parameters
x-frigg-appuseridstringOptional

Identifies the acting end user, when the Frigg app's getUserId resolves the user from this header instead of a bearer token.

Example: {{appUserId}}
x-frigg-apporgidstringOptional

Identifies the acting end user's organization (app-specific).

Example: {{appOrgId}}
Responses
200

Entity options.

application/json

A dynamic options form, typically expressed as a JSON Schema plus a UI Schema consumed by the Frigg frontend.

Other propertiesanyOptional
get/api/entity/options/{credentialId}

Get Entity

get
/api/entities/{entityId}

Returns the entity record for the given entity id.

Authorizations
AuthorizationstringRequired

Bearer token for the acting user, when the Frigg app's getUserId resolves the user from an Authorization header.

Path parameters
entityIdstringRequired

The entity's id.

Example: {{entityId}}
Header parameters
x-frigg-appuseridstringOptional

Identifies the acting end user, when the Frigg app's getUserId resolves the user from this header instead of a bearer token.

Example: {{appUserId}}
x-frigg-apporgidstringOptional

Identifies the acting end user's organization (app-specific).

Example: {{appOrgId}}
Responses
200

The entity.

application/json
idstringOptional
userstringOptional
namestringOptional
Other propertiesanyOptional
get/api/entities/{entityId}

Test Entity Auth

get
/api/entities/{entityId}/test-auth

Runs testAuth against a single entity's credential.

Authorizations
AuthorizationstringRequired

Bearer token for the acting user, when the Frigg app's getUserId resolves the user from an Authorization header.

Path parameters
entityIdstringRequired

The entity's id.

Example: {{entityId}}
Header parameters
x-frigg-appuseridstringOptional

Identifies the acting end user, when the Frigg app's getUserId resolves the user from this header instead of a bearer token.

Example: {{appUserId}}
x-frigg-apporgidstringOptional

Identifies the acting end user's organization (app-specific).

Example: {{appOrgId}}
Responses
200

Authentication is healthy.

application/json
statusstringOptionalExample: ok
get/api/entities/{entityId}/test-auth

Get Entity Options (by Entity)

post
/api/entities/{entityId}/options

Returns the options form for an existing entity.

Authorizations
AuthorizationstringRequired

Bearer token for the acting user, when the Frigg app's getUserId resolves the user from an Authorization header.

Path parameters
entityIdstringRequired

The entity's id.

Example: {{entityId}}
Header parameters
x-frigg-appuseridstringOptional

Identifies the acting end user, when the Frigg app's getUserId resolves the user from this header instead of a bearer token.

Example: {{appUserId}}
x-frigg-apporgidstringOptional

Identifies the acting end user's organization (app-specific).

Example: {{appOrgId}}
Body
Other propertiesanyOptional
Responses
200

Entity options.

application/json

A dynamic options form, typically expressed as a JSON Schema plus a UI Schema consumed by the Frigg frontend.

Other propertiesanyOptional
post/api/entities/{entityId}/options

Refresh Entity Options

post
/api/entities/{entityId}/options/refresh

Re-evaluates an entity's options form given the current (partial) submission.

Authorizations
AuthorizationstringRequired

Bearer token for the acting user, when the Frigg app's getUserId resolves the user from an Authorization header.

Path parameters
entityIdstringRequired

The entity's id.

Example: {{entityId}}
Header parameters
x-frigg-appuseridstringOptional

Identifies the acting end user, when the Frigg app's getUserId resolves the user from this header instead of a bearer token.

Example: {{appUserId}}
x-frigg-apporgidstringOptional

Identifies the acting end user's organization (app-specific).

Example: {{appOrgId}}
Body
Other propertiesanyOptional
Responses
200

Refreshed entity options.

application/json

A dynamic options form, typically expressed as a JSON Schema plus a UI Schema consumed by the Frigg frontend.

Other propertiesanyOptional
post/api/entities/{entityId}/options/refresh

Last updated

Was this helpful?