Medium Node: Publication ID

Describe the problem/error/question

On the Medium node, there is a field named ‘Publication Name or ID’, I entered the id in the URL (after ) and it returns me an error message.
I looked for Medium publication ID but it seems that Medium’s API does not support it, so I am wondering what should I write in this field?

What is the error message (if any)?

ERROR: Bad request - please check your parameters
Invaid publication ID

Please share your workflow

Share the output returned by the last node

NodeApiError: Bad request - please check your parameters
    at Object.mediumApiRequest (/usr/local/lib/node_modules/n8n/node_modules/n8n-nodes-base/dist/nodes/Medium/GenericFunctions.js:30:15)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at Object.execute (/usr/local/lib/node_modules/n8n/node_modules/n8n-nodes-base/dist/nodes/Medium/Medium.node.js:409:44)
    at Workflow.runNode (/usr/local/lib/node_modules/n8n/node_modules/n8n-workflow/dist/Workflow.js:646:28)
    at /usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/WorkflowExecute.js:631:53

Information on your n8n setup

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
    n8n cloud
  • Operating system:
    ubuntu 22.04

Hey @kitsuiwebster,

Welcome to the community :cake:

The publication ID is nomraly something like b45573563f5a or b969ac62a46b, As an example @MicrosoftDesign has a publication ID of d97749d23c4a

To find the Publication ID you can use the API to get a list of your users posts and in there you will see the publication ID.


Thank you !
The thing is that the publication is empty, and the user with who’m I would like to publish the article doesnt have anything published yet.

Hey @kitsuiwebster,

Ah in that case I am not sure of another way to get the publication id, Sadly the API docs are not that great. Does it give you an ID in medium itself?


No it does not unfortunately.
Do you think there is no way without any content on the medium user’s profile to get the publication ID?

@Jon I could publish a first post on medium and then use the API to access the post and the publication ID? How would I do that?

Hey @kitsuiwebster,

It should just be a call to{{userId}}/publications where{{userId}} is replaced with the ID of the user.

Thank you!

I managed to obtain the publication ID, but I get a new error message:

ERROR: Forbidden - perhaps check your credentials?
A writer is only allowed to post drafts into a publication

I would like to post it as a draft, but I do not have a parameter to choose that in the Medium node.
How may I make it?

Hey @kitsuiwebster,

In the ndoe if you click on Add Field at the bottom under Additional Fields there is an option for Publish Status, This can be set to Draft and should resolve the issue.


1 Like

Oh okay, yes it works thank you !
Kind Regards


This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.