REST API Code Generation

circle-info

💡 Auth, Storage, and Data CRUD do not have dedicated MCP tools. Instead, your AI tool uses search_docs to find documentation and generates REST API code automatically.

Overview

When you ask your AI tool to implement Auth, Storage, or Data CRUD features, it follows this pattern:

spinner

Data CRUD

Ask Your AI Tool

"List all articles sorted by date"

"Create a new user record"

"Update the user's role to editor"

"Delete the article with this ID"

Key Endpoints

All data operations use the dynamic table endpoint pattern: /v1/data/{tableName}

Endpoint
Method
Description

/v1/data/{tableName}

GET

List records (with filtering, sorting, pagination)

/v1/data/{tableName}/{id}

GET

Get a single record

/v1/data/{tableName}

POST

Create a record

/v1/data/{tableName}/{id}

PATCH

Update a record

/v1/data/{tableName}/{id}

DELETE

Delete a record

Filtering, Sorting, and Pagination

Parameter
Description

sortBy

Sort field

sortDirection

asc or desc

page

Page number (default: 1)

limit

Items per page (default: 20)

andFilters

JSON string of AND condition filters

Code Example

Response Structure

circle-exclamation

Auth

Ask Your AI Tool

Key Endpoints

Email Auth

Endpoint
Method
Description

/v1/auth/email/signup

POST

Email signup

/v1/auth/email/signin

POST

Email login

/v1/auth/email/verify/send

POST

Send email verification

/v1/auth/email/verify/confirm

POST

Confirm email verification

/v1/auth/email/verify/resend

POST

Resend verification email

Social Auth (OAuth)

Endpoint
Method
Description

/v1/auth/{provider}/callback

GET

OAuth callback (redirect)

/v1/auth/{provider}/callback

POST

OAuth callback (API flow)

Token Management

Endpoint
Method
Description

/v1/auth/me

GET

Get my profile

/v1/auth/refresh

POST

Refresh token

/v1/auth/signout

POST

Logout

Password Management

Endpoint
Method
Description

/v1/auth/password/reset/request

POST

Request password reset

/v1/auth/password/reset/confirm

POST

Confirm password reset

/v1/auth/password/change

POST

Change password

User Management

Endpoint
Method
Description

/v1/users/{userId}

GET

Get user profile

/v1/users/{userId}

PATCH

Update user profile

/v1/users/{userId}/avatar/upload-url

POST

Get profile image upload URL

Code Example

circle-info

💡 All auth API calls require the X-API-Key header. After authentication, pass the issued JWT via the Authorization: Bearer {accessToken} header.


Storage

Ask Your AI Tool

Key Endpoints

Presigned URL

Endpoint
Method
Description

/v1/files/presigned-url

POST

Issue a presigned URL for upload

/v1/files/{fileId}/download-url

GET

Issue a download URL

File Management

Endpoint
Method
Description

/v1/files

GET

List files

/v1/files/{fileId}

GET

Get file metadata

/v1/files/{fileId}

DELETE

Delete a file

/v1/files/{fileId}/complete

POST

Mark upload as complete

/v1/files/{fileId}/visibility

PATCH

Change file visibility

Multipart Upload

Endpoint
Method
Description

/v1/files/multipart/initiate

POST

Start multipart upload

/v1/files/multipart/{uploadId}/part-url

POST

Issue a part upload URL

/v1/files/multipart/{uploadId}/complete

POST

Complete multipart upload

/v1/files/multipart/{uploadId}/abort

POST

Abort multipart upload

Bucket Management

Endpoint
Method
Description

/v1/files/buckets

GET

List buckets

Upload Flow

spinner

Code Example

File Visibility Levels

Level
Description

public

Accessible by anyone

private

Accessible only by the uploader

protected

Accessible only by authenticated users

shared

Shared with specific users

circle-exclamation

Next Steps

Last updated