API Reference
Management API
Auth (Callback)
Body
entityTypestringOptionalExample:
{{entityType}}
Responses
201
OAuth Example
text/plain
post
POST /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
POST /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:
integration1
Responses
202
Delete Integration
application/json
Responseobject
delete
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:
user123
x-frigg-apporgidstringOptionalExample:
org123
Body
idstringOptionalExample:
integration1
Responses
200Success
patch
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
Last updated
Was this helpful?