SubPage provides the following API endpoints, to receive notification on events like a new blog post, a new job post or a new lead been generated on your published SubPage.
Authentication
All the requests made to the endpoints should contain api_key parameter. You can obtain the API key from the "Integrations" sections of your SubPage
Profile endpoint
This endpoint provides basic information about the current SubPage account.
Request parameters
api_key - API key of the SubPage domain
Response
status - Either "success" or "error"
domain - The domain name belonging to the SubPage based on the API key
Sample response
Triggers endpoint
This endpoint provides the available notifications for the provided event in the current SubPage account.
Request parameters
api_key - API key of the SubPage domain
event - Type of the event like "new_article", "new_lead", etc.
Response
Response is an array of events whose properties varies by the event type. Following example is for a "new_lead"
Sample response