Rails Blueprint Pro API (v1)

Download OpenAPI specification:

Rails Blueprint Pro provides a comprehensive API for managing posts, users, settings, and pages with JWT authentication and JSON:API format.

Authentication

Login user

Authenticate user and receive JWT tokens

Request Body schema: application/json
grant_type
required
string
Default: "password"
Enum: "password" "refresh_token"
email
string <email>
password
string
refresh_token
string

Required when grant_type is refresh_token

Responses

Response Schema: application/vnd.api+json
object
object

Request samples

Content type
application/json
{
  • "email": "user@example.com",
  • "password": "password123",
  • "grant_type": "password",
  • "refresh_token": "string"
}

Response samples

Content type
application/vnd.api+json
{
  • "data": {
    },
  • "meta": {
    }
}

Logout user

Invalidate the current API session

Authorizations:
bearer_auth
header Parameters
Authorization
string

Bearer token

Responses

Response Schema: application/vnd.api+json
data
object or null
object

Response samples

Content type
application/vnd.api+json
{
  • "data": { },
  • "meta": {
    }
}

Posts

List posts

Get a paginated list of posts

Authorizations:
bearer_auth
query Parameters
page[after]
string

Cursor for pagination (after this cursor)

page[before]
string

Cursor for reverse pagination (before this cursor)

page[size]
integer

Page size (max 100, default 25)

q
string

Search query

include
string

Include related resources (e.g., user)

header Parameters
Authorization
string

Bearer token

Responses

Response Schema: application/vnd.api+json
Array of objects
object
object

Response samples

Content type
application/vnd.api+json
{
  • "data": [
    ],
  • "meta": {
    },
  • "links": {
    }
}

Create post

Create a new post

Authorizations:
bearer_auth
header Parameters
Authorization
string

Bearer token

Request Body schema: application/vnd.api+json
required
object

Responses

Response Schema: application/vnd.api+json
object
object

Request samples

Content type
application/vnd.api+json
{
  • "data": {
    }
}

Response samples

Content type
application/vnd.api+json
{
  • "data": {
    },
  • "meta": {
    }
}

Show post

Get a specific post

Authorizations:
bearer_auth
path Parameters
id
required
string

Post ID

header Parameters
Authorization
string

Bearer token

Responses

Response Schema: application/vnd.api+json
object

Response samples

Content type
application/vnd.api+json
{
  • "data": {
    }
}

Update post

Update a post

Authorizations:
bearer_auth
path Parameters
id
required
string

Post ID

header Parameters
Authorization
string

Bearer token

Request Body schema: application/vnd.api+json
object

Responses

Request samples

Content type
application/vnd.api+json
{
  • "data": {
    }
}

Response samples

Content type
application/vnd.api+json
{
  • "errors": [
    ]
}

Delete post

Delete a post

Authorizations:
bearer_auth
path Parameters
id
required
string

Post ID

header Parameters
Authorization
string

Bearer token

Responses

Response Schema: application/vnd.api+json
data
object or null
object

Response samples

Content type
application/vnd.api+json
{
  • "data": { },
  • "meta": {
    }
}

Settings

List settings

Get all application settings (admin only)

Authorizations:
bearer_auth
header Parameters
Authorization
string

Bearer token

Responses

Response Schema: application/vnd.api+json
Array of objects

Response samples

Content type
application/vnd.api+json
{
  • "data": [
    ]
}

Update settings

Update multiple settings at once (admin only)

Authorizations:
bearer_auth
header Parameters
Authorization
string

Bearer token

Request Body schema: application/vnd.api+json
required
Array of objects

Responses

Response Schema: application/vnd.api+json
Array of objects
object

Request samples

Content type
application/vnd.api+json
{
  • "data": [
    ]
}

Response samples

Content type
application/vnd.api+json
{
  • "data": [
    ],
  • "meta": {
    }
}

Show setting

Get a specific setting by key (admin only)

Authorizations:
bearer_auth
path Parameters
key
required
string

Setting key

header Parameters
Authorization
string

Bearer token

Responses

Response Schema: application/vnd.api+json
object

Response samples

Content type
application/vnd.api+json
{
  • "data": {
    }
}

Update setting

Update a specific setting by key (admin only)

Authorizations:
bearer_auth
path Parameters
key
required
string

Setting key

header Parameters
Authorization
string

Bearer token

Request Body schema: application/vnd.api+json
required
object

Responses

Request samples

Content type
application/vnd.api+json
{
  • "data": {
    }
}

Response samples

Content type
application/vnd.api+json
{
  • "errors": [
    ]
}

Users

List users

Get a paginated list of users (admin only)

Authorizations:
bearer_auth
query Parameters
page[after]
string

Cursor for pagination (after this cursor)

page[before]
string

Cursor for reverse pagination (before this cursor)

page[size]
integer

Page size (max 100, default 25)

q
string

Search query

header Parameters
Authorization
string

Bearer token

Responses

Response Schema: application/vnd.api+json
Array of objects
object
object

Response samples

Content type
application/vnd.api+json
{
  • "data": [
    ],
  • "meta": {
    },
  • "links": {
    }
}

Create user

Create a new user (admin only)

Authorizations:
bearer_auth
header Parameters
Authorization
string

Bearer token

Request Body schema: application/vnd.api+json
required
object

Responses

Response Schema: application/vnd.api+json
object
object

Request samples

Content type
application/vnd.api+json
{
  • "data": {
    }
}

Response samples

Content type
application/vnd.api+json
{
  • "data": {
    },
  • "meta": {
    }
}

Show user

Get a specific user (admin only)

Authorizations:
bearer_auth
path Parameters
id
required
string

User ID

header Parameters
Authorization
string

Bearer token

Responses

Response Schema: application/vnd.api+json
object

Response samples

Content type
application/vnd.api+json
{
  • "data": {
    }
}

Update user

Update a user (admin only)

Authorizations:
bearer_auth
path Parameters
id
required
string

User ID

header Parameters
Authorization
string

Bearer token

Request Body schema: application/vnd.api+json
object

Responses

Request samples

Content type
application/vnd.api+json
{
  • "data": {
    }
}

Response samples

Content type
application/vnd.api+json
{
  • "errors": [
    ]
}

Delete user

Delete a user (admin only)

Authorizations:
bearer_auth
path Parameters
id
required
string

User ID

header Parameters
Authorization
string

Bearer token

Responses

Response Schema: application/vnd.api+json
data
object or null
object

Response samples

Content type
application/vnd.api+json
{
  • "data": { },
  • "meta": {
    }
}