Basic REST API question (about User selection while creating Keys)
-
I’ve read the official Woocommerce REST API documentation and there is something I don’t understand, I can’t find the answer anywhere else either.
Context: I am a shop owner and a marketplace that I will work with asks me for an API key, to display my products in their store (pictures, description, stock, etc).
Question: I go to Settings and while creating an API key, after the description, Woocommerce asks to select a User, so should I:
a/ choose myself as the User, and then give this key to the marketplace (and give this same, unique key, to every third party that asks for an API key)?
or
b/ should I go create a specific User for the marketplace (and create a specific, distinct User and API key to every third party who need an API key in the future)?If a/, I guess giving a key with Admin privileges to third parties is not a best practice, so should I select only “Read” (instead of Read/Write) to avoid issues?
If b/, what user role should I select (“Client”?) and should I choose read and/or write?Thanks!
The topic ‘Basic REST API question (about User selection while creating Keys)’ is closed to new replies.