Dev.to settings
Dev.to publishes articles, so the post’s content is the article body in Markdown.
Fields
Section titled “Fields”| Field | Required | Description |
|---|---|---|
title |
Yes | The article title. At least two characters. |
main_image |
No | Cover image, as a media object with id and path. |
canonical |
No | Canonical URL, when the article was published elsewhere first. Must be a valid URL when present. |
organization |
No | The organization id to publish under. |
tags |
No | Array of tag objects. Maximum 4. Defaults to an empty array. |
Tag objects
Section titled “Tag objects”Dev.to tags differ from every other provider’s: value is a number, not a string.
{ "value": 12345, "label": "javascript" }Example
Section titled “Example”"settings": { "title": "What we learned shipping in public", "main_image": { "id": "media-id", "path": "https://media.example.com/cover.png" }, "canonical": "https://example.com/blog/shipping-in-public", "tags": [ { "value": 12345, "label": "startups" }, { "value": 67890, "label": "webdev" } ]}- A tag’s
valuemust be a number; a word such as"javascript"is refused. Dev.to receives the tag’slabel, so makelabelthe tag’s name. - More than four tags is refused.
- Dev.to channels are connected with an API key you supply rather than a redirect.
Send these under settings in create a post. Read a channel’s live
schema with channel settings. Connect the channel first:
connecting your channels.