Obtain an API key or OAuth token for Blogs API and set the scope to emails/builder.readonly to allow reading email templates when connecting with Affiliatly. Ensure you grant access only to the necessary resources.
Affiliatly uses OAuth2 to request access to your Blogs API resources. After you grant consent, you will receive an access token scoped to the requested permissions, including reading email templates and managing posts if needed.
Key endpoints involved: GET emails/builder; GET emails/builder.write; POST emails/builder; POST /emails/builder/data; DELETE /emails/builder/:locationId/:templateId; emails/schedule.readonly; GET emails/schedule; blogs/post.write; POST /blogs/posts; blogs/post-update.write; PUT /blogs/posts/:postId; blogs/check-slug.readonly; GET /blogs/posts/url-slug-exists; blogs/category.readonly; GET /blogs/categories; blogs/author.readonly; GET /blogs/authors
Trigger: When a new template is added or updated in Blogs API, Affiliatly updates the corresponding email template in Emails Builder.
Actions: Create, update, or delete email templates; reflect changes in campaigns and schedules.
GET emails/builder
templateId, locationId, templateName
Trigger: When a blog post is published in Blogs API, Affiliatly starts a broadcast or newsletter via blogs posts integration.
Actions: Create posts in Blogs API; trigger email campaigns; sync slug and category metadata.
POST /blogs/posts (and PUT /blogs/posts/:postId for updates)
title, content, slug, category, authorId
Trigger: Before publishing, check if a slug already exists using GET /blogs/posts/url-slug-exists and resolve conflicts.
Actions: Generate or adjust slugs, map to existing posts, notify if conflicts.
GET /blogs/posts/url-slug-exists
slug
Build powerful automations without writing code by wiring Blogs API and Affiliatly through a visual editor.
Streamline content-to-campaign workflows, enabling timely newsletters for new posts.
Secure, scalable integration with scoped permissions and centralized credentials.
This glossary defines API, endpoint, trigger, action, slug, OAuth2, and related terms used in this guide to help you understand the integration flow.
A set of rules and tools that allow software applications to communicate with each other.
A callback URL that receives real-time data notifications from another service.
A URL-friendly string used to uniquely identify a post and improve SEO.
An authorization framework for granting access tokens securely.
Automatically trigger targeted email campaigns when new blog posts are published in Blogs API, using email templates from the Emails Builder.
Use slug existence checks to trigger pre-launch email sequences as soon as a new post title is created.
Segment audiences by author and send personalized newsletters when new posts by that author go live.
In the Blogs API dashboard, create a new app integration and copy the client ID and client secret registered with your Affiliatly account.
Initiate the OAuth2 flow from Affiliatly to grant access to Blogs API with scope: emails/builder.readonly.
Run a test to fetch templates, create a post, and verify that emails are queued.
The Blogs API and Affiliatly integration lets you connect blog content to automated email campaigns without writing code. It uses a set of endpoints to read, create, and manage emails and blog posts. By linking slug validation and post publishing, you can deliver timely newsletters and product updates directly from your blog to your audience.
Key endpoints include GET emails/builder, POST /blogs/posts, GET /blogs/posts/url-slug-exists, and GET blogs/categories. You typically map required fields such as templateId, postId, slug, and title to ensure data flows between Blogs API and Affiliatly.
No deep coding is required; you can configure connections using the no-code connectors built into the platform. If you know how to set up webhooks and triggers, you can customize workflows easily.
Permissions are controlled via OAuth2 scopes; ensure you request at least emails/builder.readonly. Your access token will be scoped and revocable; all actions occur within the defined permissions.
Start with a test connection in the Apps dashboard to verify tokens and endpoints. Review logs and run a sample post to confirm data flows to email templates.
Yes, you can customize subject lines, templates, and fields mapped during sync. Be mindful of rate limits and maintain consistent data formats for title, slug, and category.
API credentials and docs are accessible from the Blogs API developer portal. In Affiliatly, navigate to Connections to view your configured apps and review endpoint specifics.
Due to high volume, we will be upgrading our server soon!
Complete Operations Catalog - 126 Actions & Triggers