💻 Developer API
Build with the Lexa Engine
Integrate Lexa's powerful content management and AI tools into your own applications with our robust developer API.
Authentication
Our API uses Bearer Token authentication. All requests must be made over HTTPS.
🔒 Production Keys
STEP 01
Generate API Key
Navigate to Dashboard > Settings > Integrations to generate your secret API key.
STEP 02
Configure Headers
Add the 'Authorization: Bearer <YOUR_API_KEY>' header to all your requests.
STEP 03
Make Requests
Use your favorite HTTP client to interact with our RESTful endpoints.
Core Endpoints
Quick overview of our most used API paths.
| Method | Endpoint | Description |
|---|---|---|
| GET | /v1/blogs | Fetch a list of all published blogs with pagination. |
| POST | /v1/blogs | Create a new blog post via the API. |
| GET | /v1/blogs/:id | Fetch single blog details including content and metadata. |
| PATCH | /v1/blogs/:id | Update an existing blog post. |
| DELETE | /v1/blogs/:id | Remove a blog post permanently. |
Quick Start
Ready to start building?
Our SDKs and detailed documentation make it easy to integrate Lexa into your existing tech stack. Whether you use Node.js, Python, or Go, we've got you covered.
const lexia = require('lexa-sdk');
const client = lexia.init({
apiKey: 'lx_pk_test_...1234'
});
// Fetch all posts
const posts = await client.blogs.list({
status: 'published'
});
console.log(posts);