API Integration
Connect your frontend applications to Meshbase using our auto-generated REST API. Fetch, create, update, and delete content with simple HTTP requests.
Getting Started
Every content type you create automatically gets a full REST API with endpoints for all CRUD operations. No additional configuration needed.
💡 Tip: Find your API key in Project Settings → API Keys. You'll need it to authenticate all requests.
Authentication
Include your API key in the Authorization header as a Bearer token:
Authorization: Bearer cms_live_a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p6Fetching Content
Get All Entries
Retrieve all entries from a collection:
GET https://api.meshbase.io/v1/blog-posts
// Response
{
"data": [
{
"id": "123",
"title": "Getting Started with Meshbase",
"slug": "getting-started",
"content": "...",
"createdAt": "2024-01-15T10:00:00Z"
}
],
"meta": {
"total": 1,
"page": 1,
"pageSize": 25
}
}Get Single Entry
Retrieve a specific entry by ID:
GET https://api.meshbase.io/v1/blog-posts/123Creating Content
Create a new entry with a POST request:
POST https://api.meshbase.io/v1/blog-posts
Content-Type: application/json
{
"title": "My New Post",
"slug": "my-new-post",
"content": "This is the content...",
"published": true
}Updating Content
Update an existing entry with a PUT request:
PUT https://api.meshbase.io/v1/blog-posts/123
Content-Type: application/json
{
"title": "Updated Title",
"published": true
}Deleting Content
Delete an entry with a DELETE request:
DELETE https://api.meshbase.io/v1/blog-posts/123