Authenticate requests to Blogs API using your API key or OAuth tokens. Keep credentials secure and rotate them regularly to minimize risk.
In Device Magic, store credentials securely in the integration settings and use access tokens to authorize API calls to Blogs API. Follow least-privilege principles and monitor usage.
– GET emails/builder – 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: a new or updated form submission in Device Magic.
Actions: POST /blogs/posts (and optionally POST /blogs/post-update.write) to create or update posts.
Method path: POST /blogs/posts
Key fields: title, content, author_id, seo_slug
Trigger: post data changed in the source form.
Actions: PUT /blogs/posts/:postId to update; optionally use blogs/post-update.write for staged changes.
Method path: PUT /blogs/posts/:postId
Key fields: postId, title, content
Trigger: draft created in Device Magic.
Actions: GET /blogs/posts/url-slug-exists to verify slug; GET /blogs/categories to set category; GET /blogs/authors to assign author.
Method path: GET /blogs/posts/url-slug-exists
Key fields: slug, category_id, author_id
Automate content workflows without writing code—pull data from Device Magic forms directly into your blog platform.
Reduce manual data entry and human error by syncing posts and updates in real time.
Scale content operations with repeatable processes and clear audit trails.
A concise glossary of terms used throughout the guide, plus a quick map of how the pieces fit together.
An application programming interface that allows two software applications to communicate and exchange data.
A URL-friendly, human-readable string used to identify a blog post.
A URL that a service calls to notify your system of events in real time.
An open standard for authorizing access to APIs without sharing user credentials.
Capture data via Device Magic forms and create new posts in Blogs API automatically.
Sync edits from Device Magic to existing blog posts.
Use the schedule endpoint to publish posts at a chosen time.
Obtain your Blogs API credentials (API key or OAuth token) and your Device Magic integration token.
In Device Magic, connect the chosen endpoints and map fields like title, content, slug, category, and author.
Run a test flow, verify data integrity in Blogs API, then deploy to production.
Blogs API supports secure authentication via API keys or OAuth 2.0 tokens. Store credentials safely in your integration settings and rotate them regularly to reduce exposure. For Device Magic, use the built-in secure vault to keep keys private and limit scopes to the necessary endpoints to minimize risk. Tip: enable audit logs and monitor usage to quickly detect unusual activity and keep your integration compliant with your security policies.
For basic post creation, you typically need the Blogs API endpoint that creates posts (POST /blogs/posts) and a slug check to ensure uniqueness (GET /blogs/posts/url-slug-exists). Mapping fields such as title, content, and slug from Device Magic ensures your posts are created consistently. You can also include the author and category data via the corresponding endpoints to categorize new posts.
Use GET /blogs/posts/url-slug-exists to verify whether a slug already exists. If the slug is taken, generate a new slug (for example, by appending a unique suffix) before creating or updating the post. This helps prevent conflicts in your blog library. If you’re working with drafts, you can check slug availability before publishing to ensure a clean launch.
Yes. To update posts from Device Magic, use PUT /blogs/posts/:postId to modify the post contents. You can drive the postId from the form data you fetch in Device Magic. The update operation can be complemented with blogs/post-update.write as needed for tracking changes or triggering additional workflows.
Yes. The Blogs API exposes endpoints for categories and authors (blogs/category.readonly, GET /blogs/categories, blogs/author.readonly, GET /blogs/authors). You can fetch and map categories and authors to posts created from Device Magic, enabling richer metadata and better organization.
When errors occur, rely on HTTP status codes and response messages to identify issues. Implement retries with exponential backoff, log failed responses, and alert your team for persistent failures. Consider using idempotent POSTs or unique request keys to avoid duplicate posts on retry.
For more information and best practices, consult the Blogs API and Device Magic documentation, review common integration patterns, and explore example workflows that connect form data to post creation and updates. Join community forums and leverage example templates to accelerate your setup.
Due to high volume, we will be upgrading our server soon!
Complete Operations Catalog - 126 Actions & Triggers