Authentication API
Before calling the Feedonomics REST APIs, your application must generate an API token. You generate the token by calling POST /login twice against https://meta.feedonomics.com/api.php: once to receive a two-factor authentication (2FA) token by email, and once to exchange that 2FA token for an API token. You then send the API token in the x-api-key header on every authenticated request.
Use this API to:
- Request a 2FA token for your account
- Exchange the 2FA token for an API token
- Label tokens so you can tell them apart when one user creates several
Which APIs use this token
Send the API token in the x-api-key header when calling:
The FeedAMP Order APIs use a separate token. For those, call GET /get_token with Basic authentication instead of the steps on this page.
Before you begin
You need a Feedonomics username and password with API access. To request access, submit a Request Feedonomics API Access support ticket through the FeedSupport Portal.
Generate an API token
Request a 2FA token
Call POST /login with your username, password, and "method": "token". Leave out twofa_token on this first call.
The response confirms that a 2FA token was sent to the email address on your account.
Exchange the 2FA token for an API token
Call POST /login again with the same credentials, and add the twofa_token from the email. Optionally include name to label the token, which helps you tell tokens apart when one user creates several.
The response contains your API token. Store it securely. You don’t need to repeat these steps until the token stops working.
If the credentials or 2FA token are wrong, the endpoint returns 400 with the message Invalid Authentication.
For the full request and response schemas, see the POST /login endpoint reference.