Can I create endpoint-based key? I only want to restrict some endpoint.
Yes you can, two ways:
-
In the GUI, create a policy that gives access to the API, and then use the path-based-permissions to add a VERB / Regex path combo that will restrict the token to a single path (you can add more verbs).
-
Create the token with the REST API and add the relevant path-based sections there.