Git Product home page Git Product logo

Comments (4)

asafalima avatar asafalima commented on August 10, 2024

Hi @leflamm,

Your account is located in the EU region, you need to make the api calls to this domain: api-eu.logz.io.
Please let me know if the issue still persists.

from public-api.

leflamm avatar leflamm commented on August 10, 2024

Hi, thanks for your reply. This issue is gone! However I could use some more help :-)

There are a couple of places where I can obtain a token:

Also I've read examples in which one should use the token as either

  • X-USER-TOKEN or
  • X-API-TOKEN

Regardless of which combination I'm trying I'm always receiving

curl -X GET -H 'X-USER-TOKEN: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx' -H 'Content-Type: application/json' https://api-eu.logz.io/v1/alerts
{"code":403,"message":"Insufficient privileges"}
curl -X GET -H 'X-API-TOKEN: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx' -H 'Content-Type: application/json' https://api-eu.logz.io/v1/alerts
{"code":403,"message":"Insufficient privileges"}

Seems to me like I don't fully understand what I have to do here. Can you help me? Thanks in advance!

from public-api.

leflamm avatar leflamm commented on August 10, 2024

@asafalima, might this be the reason?

image

At "Usage & Billing" is states
image

from public-api.

asafalima avatar asafalima commented on August 10, 2024

@leflamm, All your requests should include X-API-TOKEN (no X-USER-TOKEN) with token from the api-tokens page.
This repo is deprecated, you can use our updated docs here: https://docs.logz.io/api/

from public-api.

Related Issues (5)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.