Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Postiz API #350

Open
1 task done
jamesread opened this issue Oct 10, 2024 · 10 comments
Open
1 task done

Postiz API #350

jamesread opened this issue Oct 10, 2024 · 10 comments
Labels
type: feature-request New feature or request

Comments

@jamesread
Copy link
Collaborator

🔖 Feature description

A simple RESTful API, where users can authenticate and make posts would be very welcome.

🎤 Why is this feature needed ?

Many people would like to use a Postiz API to run automations and scripts.

✌️ How do you aim to achieve this?

The backend itself basically is the API, but it's not well documented for general API usage - it's only used by the frontend, and it's fairly tightly coupled with the frontend as well.

It is likely that the community would want to build connectors or Postiz, for popular automation apps like n8n, or even something like Apprise.

🔄️ Additional Information

This has been suggested in the Discord chat.

👀 Have you spent some time to check if this feature request has been raised before?

  • I checked and didn't find similar issue

Are you willing to submit PR?

None

@jamesread jamesread added the type: feature-request New feature or request label Oct 10, 2024
@coder-pink
Copy link

@jamesread Hi, Can you assign this to me?

@jamesread
Copy link
Collaborator Author

Hey @coder-pink , this needs a full design really before we go ahead and implement it. @nevo-david and I probably need to sit down together and work out what makes sense before we can open this up for contribution.

However, feel free to stare any design ideas that you might have here, and when we're ready, we'll make sure to include you!

@coder-pink
Copy link

Hey @coder-pink , this needs a full design really before we go ahead and implement it. @nevo-david and I probably need to sit down together and work out what makes sense before we can open this up for contribution.

However, feel free to stare any design ideas that you might have here, and when we're ready, we'll make sure to include you!

Hi @jamesread @nevo-david, Thanks for the updates, I completely understand the need for the design before implementation. I’m more than happy to wait for you both to discuss the best approach. I have some ideas for the RESTful API, particularly regarding the authentication method and necessary endpoints.

Authentication Method:
For Authentication, we can implement both OAuth 2 and JWT for secure authentication and token access. However, if we don't want the involvement of a third party, we could focus on JWT authentication. This approach simplifies user management and makes it easy to issue and validate tokens for user sessions.

I can provide more details on the endpoints we might need once we have a clearer direction on the overall design.

Looking forward to hearing your thoughts!

@jamesread
Copy link
Collaborator Author

Hey @coder-pink , I think there is a discussion about whether this lands in the public project, or is a feature that only exists for the paid-for platform version. I haven't caught up with @nevo-david about this in a while so I'd need to do that to know where we're going.

At the moment Postz supports auth with the backend API, using local users as well as OAuth2 - so we'd probably just re-use the existing auth methods.

@coder-pink
Copy link

Hi @jamesread, Thanks for the update! I’d love to contribute to any other issues or tasks that might be available. Are there any issues that I can work on?

@jamesread
Copy link
Collaborator Author

@RRoundTable
Copy link

I attempted to use the Postiz backend API from n8n, but found it challenging due to its tight coupling with the frontend. If the API could be made more accessible for backend use, I believe it would significantly increase Postiz's potential for integration with various automation tools, driving much wider adoption.

While I'm not familiar enough with Next.js to make direct contributions, I’d be glad to provide feedback from an n8n user's perspective.

@timoa
Copy link

timoa commented Oct 30, 2024

Agree! One thing I loved about Buffer (as a paid user) was the browser extension that allows you to collect articles you want to share on multiple social networks. 
If you go with the pay-for platform, you will limit the automation and additional "channels" that your API will allow (browser extension, connection to other social media tools, N8N/Zapier/Make, etc.).
I would be more than happy to contribute to N8N node or browser extension if we have an API to use 😅

@samgabrail
Copy link

Really looking forward to this!

@jamesread
Copy link
Collaborator Author

An API would be nice of course, I also would like that very much indeed - it would allow for some really powerful possibilities.

However, the founder of this projecto @nevo-david gets to make decisions, and he's probably keen to hear input. At the same time, he's invested hundreds, probably thousands of hours into the project, so how does he get reimbursed (financially) for that? A discussion in the open is good.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: feature-request New feature or request
Projects
None yet
Development

No branches or pull requests

5 participants