The request went to the wrong address

    The message you saw
    API keys are accepted only at https://api.scriptivox.com/v1. Send the request there.

    Where you might see it: API

    What happened

    Your API key was sent to an address that is not the API's public address, so it was refused. The answer is 401 INVALID_API_KEY and says that API keys are accepted only at https://api.scriptivox.com/v1. Nothing was started. Nothing is wrong with the key itself.

    Why it happens

    • You called one of our internal addresses directly instead of the public address https://api.scriptivox.com/v1. Only the public address accepts API keys.
    • A fault on our side. If you are already sending requests to https://api.scriptivox.com/v1 and still see this, the fault is ours, not yours.

    What to do

    1. Send every request to https://api.scriptivox.com/v1, followed by the endpoint path, for example https://api.scriptivox.com/v1/balance.
    2. Use the same key as before. It does not need replacing.
    3. If you already use that address and still see this answer, email us at once with the request_id.

    Were you charged?

    No. Nothing was started, so nothing was used.

    Still stuck?

    Email support@scriptivox.com with:

    • the email address of your Scriptivox account
    • the address you sent the request to, and the request_id from the answer if it has one
    • when it happened, with your time zone
    • the exact message you saw

    For developers

    401 INVALID_API_KEY. It is answered by our side behind the public address when a key reaches it without having passed through the public address. The key is not looked up, and sending the same request there again gives the same answer. Change the base URL to https://api.scriptivox.com/v1.

    {
      "error": {
        "code": "INVALID_API_KEY",
        "message": "API keys are accepted only at https://api.scriptivox.com/v1. Send the request there.",
        "docs_url": "https://www.scriptivox.com/errors/request-wrong-address",
        "help_id": "request-wrong-address",
        "request_id": "req_6fe725fffa7d9b98"
      }
    }

    On the public address itself, this sentence means our side is misconfigured: it is reported to us and is never counted against your key.