Skip to main content

Olake UI API

This page contains the official Swagger documentation for the OLake UI API, including endpoint reference details, authentication instructions, and guidance for testing requests.

Accessing the OLake UI API​

OLake UI Swagger interface

Authentication​

This API uses Session-based Authentication (Cookies).

To access protected endpoints:

  1. Login: Send a POST request to /login with your credentials.
  2. Cookie: A session cookie will be set in your browser automatically upon successful login.
  3. Requests: Subsequent requests will automatically include this cookie.

There is no need to manually handle tokens or headers.

Using cURL with Cookies​

When using cURL, you must explicitly save and send cookies between requests:

Step 1: Login and save the cookie

curl -L 'http://localhost:8000/login' \
-H 'Content-Type: application/json' \
-c cookies.txt \
-d '{"username": "admin", "password": "password"}'

Step 2: Use the saved cookie for subsequent requests

curl -L 'http://localhost:8000/api/v1/project/123/jobs' \
-H 'Accept: */*' \
-b cookies.txt

The -c cookies.txt flag saves the session cookie, and -b cookies.txt sends it with subsequent requests.

Response Format​

The API uses standard HTTP response codes to indicate success or failure:

  • 200 OK: Request was successful.
  • 400 Bad Request: The request was invalid.
  • 401 Unauthorized: Authentication failed or session expired.
  • 500 Internal Server Error: Something went wrong on the server side.


πŸ’‘ Join the OLake Community!

Got questions, ideas, or just want to connect with other data engineers?
πŸ‘‰ Join our Slack Community to get real-time support, share feedback, and shape the future of OLake together. πŸš€

Your success with OLake is our priority. Don’t hesitate to contact us if you need any help or further clarification!