Skip to content

Dev.to settings

Dev.to publishes articles, so the post’s content is the article body in Markdown.

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.

Dev.to tags differ from every other provider’s: value is a number, not a string.

{ "value": 12345, "label": "javascript" }
"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 value must be a number; a word such as "javascript" is refused. Dev.to receives the tag’s label, so make label the 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.