API Reference
Management API
Auth (Callback)
Body
entityTypestringOptionalExample:
{{entityType}}Responses
201
OAuth Example
text/plain
post
/api/authorizePOST /dev/api/authorize HTTP/1.1
Host: localhost:3001
Content-Type: application/json
Accept: */*
Content-Length: 232
"{\n \"entityType\":\"{{targetEntityType}}\",\n \"data\": {\n \"subdomain\": {{userProvidedSubdomain}},\n \"public_key\": {{userProvidedPublicKey}},\n \"private_key\": {{userProvidedPrivateKey}}\n }\n}"201
OAuth Example
{
"type": "{{entityType}}",
"credential_id": {{generatedCredentialId}},
"entity_id": {{generatedEntityId}}
}
Create Integration
Authorizations
Body
entitiesstring[]OptionalExample:
["{{yourAppEntityId}}","{{targetAppEntityId}}"]Responses
201
Create Integration
text/plain
post
/api/integrationsPOST /dev/api/integrations HTTP/1.1
Host: localhost:3001
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 60
{
"entities": [
"{{yourAppEntityId}}",
"{{targetAppEntityId}}"
]
}201
Create Integration
{
"id":"{{generatedIntegrationId}}",
"entities":[
"{{yourAppEntityId}}",
"{{targetAppEntityId}}"
],
"status": "ENABLED", // Enums: ENABLED, DISABLED, NEEDS_CONFIG, PROCESSING, ERROR
"config": {
"type": "{{targetIntegrationType}}",
"enable": {
"sync": true,
"webhooks": "true"
},
"map": {
"syncMap": {
"freshbooksEntityId": [
"name.first",
"name.last"
],
"salesforceEntityId": [
"firstName",
"lastName"
]
}
}
}
}Delete Integration
Path parameters
integrationIdstringRequired
Body
idstringOptionalExample:
integration1Responses
202
Delete Integration
application/json
Responseobject
delete
/api/integrations/{integrationId}DELETE /dev/api/integrations/{integrationId} HTTP/1.1
Host: localhost:3001
Content-Type: application/json
Accept: */*
Content-Length: 21
{
"id": "integration1"
}202
Delete Integration
{}Update Integration
Path parameters
integrationIdstringRequired
Header parameters
x-frigg-appuseridstringOptionalExample:
user123x-frigg-apporgidstringOptionalExample:
org123Body
idstringOptionalExample:
integration1Responses
200Success
No content
patch
/api/integrations/{integrationId}PATCH /dev/api/integrations/{integrationId} HTTP/1.1
Host: localhost:3001
Content-Type: application/json
Accept: */*
Content-Length: 186
{
"config": {
"enable": {
"sync": true,
"webhooks": false
},
"map": {
"syncMap": {
"freshbooksEntityId": [
"name.first",
"name.last"
],
"salesforceEntityId": [
"firstName",
"lastName"
]
}
}
},
"id": "integration1"
}200Success
No content
Get Integration Config Options
Path parameters
integrationIdstringRequired
Responses
200Success
No content
get
/api/integrations/{integrationId}/config/optionsGET /dev/api/integrations/{integrationId}/config/options HTTP/1.1
Host: localhost:3001
Accept: */*
200Success
No content
Get User Action Options
Path parameters
integrationIdstringRequired
actionIdstringRequired
Responses
200Success
No content
get
/api/integrations/{integrationId}/actions/{actionId}/optionsGET /dev/api/integrations/{integrationId}/actions/{actionId}/options HTTP/1.1
Host: localhost:3001
Accept: */*
200Success
No content
Submit User Action
Authorizations
Responses
200Success
No content
post
/api/integrations/65bbfe8e4124ba1e42b939e4/actions/DELETE_ALL_CUSTOM_OBJECTSPOST /dev/api/integrations/65bbfe8e4124ba1e42b939e4/actions/DELETE_ALL_CUSTOM_OBJECTS HTTP/1.1
Host: localhost:3001
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
200Success
No content
Last updated
Was this helpful?
