LxBlog
/Docs

Quick Start

1. Register Your App

Register Your App

Before you can integrate with the LxBlog API, you need to register your application to obtain OAuth credentials. This takes just a minute from the LxBlog dashboard.

Create a New OAuth App

  1. Navigate to Dashboard → Settings → Developers.
  2. Click "Register New App".
  3. Fill in the required details:
    • App Name — a human-readable name for your application.
    • Description (optional) — a short description of what your app does.
    • Website URL (optional) — the public URL of your application.
    • Redirect URIs — one per line, at least one is required. These are the URLs that LxBlog will redirect users to after they authorize your app. For local development, use http://localhost:3000/api/callback.
  4. Click "Create App" to register your application.

Your Credentials

After creating your app, you will receive two values:

  • client_id — a public identifier for your app.
  • client_secret — a confidential secret used to authenticate your app on the server side.

Store the client secret securely — it is only shown once and cannot be retrieved later. If you lose it, you will need to generate a new one.

For local development, use http://localhost:3000/api/callback as your redirect URI. You can add additional redirect URIs later for staging and production environments.

Store Your Credentials

Add the credentials to your environment variables so your application can use them:

.env.local
LXBLOG_CLIENT_ID=your_client_id_here
LXBLOG_CLIENT_SECRET=your_client_secret_here

With your app registered and credentials stored, you are ready to implement the authorization flow in the next step.