InyokeDocs

Your key

Every call carries one of your keys. A key acts as your account, as the person who made it.

Make keys on the website, on Your API keys. A key is shown once, when it's made, so keep it on your own server and never in a browser or an app.

https://www.inyoke.com/api/vendor/v1
Authorization: Bearer sk_live_…

Every call goes to this address and carries your key in an Authorization: Bearer header, or in an x-api-key header. Send and read JSON.

A Read key can make every GET call. A Read and write key can also make every POST call.

A key acts as your account, as the person who made it. It can do what your account can do here and nothing more, and it stops working if that person leaves the account.

Anything wrong with the key is the same 401 with the same words, Invalid or revoked API key: a key that doesn't exist or was revoked, a key that isn't a lead vendor's, a key whose maker has left, an account waiting for approval or closed, and a key used from an address that isn't on your IP list. The answer never says which, so a stolen key tells whoever holds it nothing.

A call with no key at all is a 401 that says Missing API key. A key without the call's scope is a 403 that names the scope.

Try a key with GET /me:

curl "https://www.inyoke.com/api/vendor/v1/me" \
  -H "Authorization: Bearer $API_KEY"

The examples read your key from $API_KEY, your ad's id from $LISTING_ID, and values from earlier answers in $UPLOAD_ID, $UPLOAD_URL, $FILE_ID and $IDEMPOTENCY_KEY. Set them first, or paste the values in.

Any call can be refused for these

StatusCodeWhen
401unauthorizedNo key was sent. The message is Missing API key.
401unauthorizedThe key can't be used here, for any reason at all. The message is Invalid or revoked API key.
403forbiddenThe key doesn't have the call's scope. The message names it.
429rate_limitedOver the minute's or the day's requests. Retry-After says how many seconds to wait.

On this page