ads
GET
https://hermeticor.com /v1/ads/oauth/apps Which ad platforms can be connected by sign-in on this install
Parameters
limitintegerqueryPage size; omitted returns the whole list
cursorstringqueryOpaque: the
nextCursor of the previous pageCode samples
cURL
curl -X GET "https://hermeticor.com/v1/ads/oauth/apps" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"items": [
{
"platform": "meta",
"configured": true
}
],
"nextCursor": "string"
}Schema
itemsobject[]requiredShow child parameters
platformstringrequiredconfiguredbooleanrequirednextCursorstringrequired4XX Default Response
Example
{
"error": {
"code": "string",
"message": "string",
"details": {}
}
}Schema
errorobjectrequiredShow child parameters
codestringrequiredmessagestringrequireddetailsobjectPOST
https://hermeticor.com /v1/ads/oauth/{platform}/start Start the sign-in: returns the platform authorize URL (state is bound to this workspace and user)
Parameters
platformstringpathrequiredCode samples
cURL
curl -X POST "https://hermeticor.com/v1/ads/oauth/{platform}/start" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"url": "string"
}Schema
urlstringrequiredGET
https://hermeticor.com /integrations/ads/{platform}/callback Parameters
typequeryadditionalPropertiesstringqueryplatformstringpathrequiredCode samples
cURL
curl -X GET "https://hermeticor.com/integrations/ads/{platform}/callback"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
"string"
GET
https://hermeticor.com /v1/ads/oauth/pending/{id} Ad accounts available after sign-in
Parameters
idstringpathrequiredCode samples
cURL
curl -X GET "https://hermeticor.com/v1/ads/oauth/pending/{id}" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"id": "string",
"platform": "meta",
"accounts": [
{
"id": "string",
"name": "string"
}
]
}Schema
idstringrequiredplatformstringrequiredaccountsobject[]requiredShow child parameters
idstringrequirednamestringrequiredPOST
https://hermeticor.com /v1/ads/oauth/pending/{id}/finish Connect the chosen ad account
Parameters
idstringpathrequiredRequest body
application/json
externalIdstringrequirednamestringconfigobjectShow child parameters
pixelIdstringpixelCodestringloginCustomerIdstringapiVersionstring{
"externalId": "string",
"name": "string",
"config": {
"pixelId": "string",
"pixelCode": "string",
"loginCustomerId": "string",
"apiVersion": "string"
}
}Code samples
cURL
curl -X POST "https://hermeticor.com/v1/ads/oauth/pending/{id}/finish" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"externalId":"string","name":"string","config":{"pixelId":"string","pixelCode":"string","loginCustomerId":"string","apiVersion":"string"}}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
201 Default Response
Example
{
"id": "string",
"platform": "meta",
"name": "string",
"externalId": "string",
"config": {},
"status": "string",
"lastError": "string",
"createdAt": "2024-01-01T00:00:00Z"
}Schema
idstringrequiredplatformstringrequirednamestringrequiredexternalIdstringrequiredconfigobjectrequiredstatusstringrequiredlastErrorstringrequiredcreatedAtstringrequiredGET
https://hermeticor.com /webhooks/ads/meta/leadgen Meta leadgen webhook verification handshake
Parameters
typequeryadditionalPropertiesstringqueryCode samples
cURL
curl -X GET "https://hermeticor.com/webhooks/ads/meta/leadgen"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
"string"
POST
https://hermeticor.com /webhooks/ads/meta/leadgen Meta leadgen delivery: queues the matching lead form syncs at once
Code samples
cURL
curl -X POST "https://hermeticor.com/webhooks/ads/meta/leadgen"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"ok": true
}Schema
okbooleanrequiredUpdated