• Which is better POST vs GET Methord for API

    Posted by Gagan Sahay on January 14, 2025 at 6:58 am

    Hi everyone. I have a question which method is best to create an API key on WordPress POST or GET? I checked the website promoterkit.com, and I noticed all API hosts by Hasan sir are on GET Methord But in security concerns, POST is best. So, which method should I use best on my WordPress website to create an API key?

    Husein replied 3 weeks, 3 days ago 2 Members · 1 Reply
  • 1 Reply
  • Husein

    Administrator
    January 14, 2025 at 8:12 am

    There’s no “better” method, POST has its use cases like when you want to add/edit something like creating users, editing their profiles and so on, while GET is used when you want to get something like getting user data from a database.

    You mentioned that you want to create an API endpoint to get and API key? what do you mean by that? API keys are used in order to make these endpoints secure.

Log in to reply.