Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. By signing up you are subscribing to the APIs.io and API Evangelist
newsletters — you can unsubscribe from any issue. See our
Privacy Policy and Terms.
openapi: 3.2.0
info:
description: 'This is documentation for the SocialBu API.
Base URL: `https://socialbu.com/api/v1`
Pass your API token from the SocialBu dashboard in the `Authorization` header:
`Authorization: Bearer YOUR_API_TOKEN`
You can get your API token from **Settings** in your SocialBu dashboard. You can also generate one programmatically by calling `POST /auth/get_token` with your email and password.
Example GET request: `GET https://socialbu.com/api/v1/accounts`'
version: 1.0.0
title: SocialBu AI Tools API
termsOfService: https://socialbu.com/about/terms
contact:
email: support@socialbu.com
servers:
- description: SocialBu API
url: https://socialbu.com/api/v1
security:
- bearerAuth: []
tags:
- name: AI Tools
paths:
/ai/tools:
get:
tags:
- AI Tools
summary: List available AI tools
operationId: listAiTools
description: Returns a list of all available AI tools with their field definitions.
responses:
'200':
description: List of AI tools
content:
application/json:
schema:
type: object
properties:
tools:
type: array
items:
type: object
properties:
slug:
type: string
description: Unique identifier for the tool (snake_case).
example: tweet_generator
name:
type: string
description: Human-readable name of the tool.
example: Tweet Generator
fields:
type: array
description: Input fields required by the tool.
items:
type: object
/ai/tools/{slug}:
post:
tags:
- AI Tools
summary: Run an AI tool
operationId: runAiTool
description: Executes an AI tool by its slug and returns the generated content.
parameters:
- name: slug
in: path
required: true
description: The slug of the AI tool to run (e.g., tweet_generator).
schema:
type: string
requestBody:
content:
application/json:
schema:
type: object
properties:
team_id:
type:
- integer
- 'null'
description: Team ID (optional). If provided, content is generated under the team. `0` or omitted generates under your own account.
responses:
'200':
description: AI tool executed successfully. Returns the generated content.
content:
application/json:
schema:
type: object
description: The response shape varies by tool, but always includes the credit cost of the request.
properties:
credit_cost:
type: integer
description: Number of AI credits consumed by this request (e.g. 1 for text tools, 30 for image tools).
'400':
description: Invalid tool slug or bad request parameters.
'403':
description: AI credit limit reached or insufficient permissions.
'422':
description: Validation error - required fields missing or invalid.
'429':
description: Rate limit exceeded.
components:
securitySchemes:
bearerAuth:
type: http
scheme: bearer
bearerFormat: JWT
description: 'Send your SocialBu API token in the `Authorization` header:
`Authorization: Bearer YOUR_API_TOKEN`
'