✨ Garanta até 20% OFF * em qualquer plano. Cupom: BEMVINDO20

2 – API – Autenticação

Atualizado em 21/10/2026

1

All API access must be authenticated.


2

REST API keys

Pre-generated keys can be used to authenticate use of the REST API endpoints. Keys are generated on the ProCatálogo WebApp.

Generating API keys

After the keys have been generated, you should see two keys: Consumer Key and Consumer Secret.

If the user associated with an API key is remove from the catalog, the API key will cease to function. API keys are not transferred to other users.

3

Authentication over HTTPS

You may use HTTP Basic Auth by providing the REST API Consumer Key as the username and the REST API Consumer Secret as the password.

HTTP Basic Auth example

curl https://www.example.com/wp-json/wc/v3/orders -u consumer_key:consumer_secret

Occasionally some servers may not parse the Authorization header correctly (if you see a "Consumer key is missing" error when authenticating over SSL, you have a server issue).

In this case, you may provide the consumer key/secret as query string parameters instead.

Example for servers that not properly parse the Authorization header:

curl https://www.example.com/wp-json/wc/v3/orders?consumer_key=123>&consumer_secret=abc