Saltar al contenido principal

First Steps

The Levix API is organized around REST. Our API has predictable resource-oriented URLs, accepts form-encoded request bodies, returns JSON-encoded responses, and uses standard HTTP response codes, authentication, and verbs.

Base URL

https://public.api.levixgas.com/v1

Swagger and Redoc

If this documentation has old information or you want to see the API in a more visual way, you can use our Swagger or Redoc documentation.

Authentication

The Levix API uses API keys to authenticate requests. You can view and manage your API keys in the Levix Portal with a non demo account.

Your API keys carry many privileges, so be sure to keep them secure! Do not share your secret API keys in publicly accessible areas such as Github, client-side code and so forth.

All API requests must be made over HTTPS. Calls made over plain HTTP will fail. API requests without authentication will also fail.

Authenticated Request using curl

curl -X GET "https://public.api.levixgas.com/v1/something" \
-H "X-API-Key: YYBXbxc.T_x2psVizfd1M3XPIKHEeYYpZkMoH4uJ5LXlicSsV8Y"