Agent C Platforms API
The platforms API from Agent C — 6 operation(s) for platforms.
The platforms API from Agent C — 6 operation(s) for platforms.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/theagentc-io:theagentc-io-platforms-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a 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.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Agent C Platforms API
description: AI COO platform — Jarvis Jr. manages your social media content.
version: 0.1.0
tags:
- name: Platforms
paths:
/v1/platforms/connect:
post:
tags:
- Platforms
summary: Connect Platform
description: 'Initiate OAuth flow for connecting a social platform.
Returns an authorization_url that the frontend should redirect
the user to. After the user authorizes, the platform redirects
back to the specified redirect_uri with a code and state.'
operationId: connect_platform_v1_platforms_connect_post
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/ConnectRequest'
required: true
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/ConnectResponse'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
security:
- HTTPBearer: []
/v1/platforms/callback:
post:
tags:
- Platforms
summary: Handle Oauth Callback
description: 'Handle the OAuth callback from the platform.
Exchanges the authorization code for access + refresh tokens,
fetches the user''s profile, and saves credentials to the brand.'
operationId: handle_oauth_callback_v1_platforms_callback_post
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/CallbackRequest'
required: true
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/CallbackResponse'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
security:
- HTTPBearer: []
/v1/platforms/status:
get:
tags:
- Platforms
summary: Get Platform Status
description: 'Get connection status of all platforms for a brand.
Returns which platforms are connected, the account username,
and whether a posting adapter is available.'
operationId: get_platform_status_v1_platforms_status_get
security:
- HTTPBearer: []
parameters:
- name: brand_id
in: query
required: true
schema:
type: string
format: uuid
description: Brand to check
title: Brand Id
description: Brand to check
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/PlatformStatusResponse'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/v1/platforms/{brand_id}/{platform}:
delete:
tags:
- Platforms
summary: Disconnect Platform
description: 'Disconnect a platform from a brand.
Removes the stored OAuth credentials. The user will need to
re-authenticate to post to this platform again.'
operationId: disconnect_platform_v1_platforms__brand_id___platform__delete
security:
- HTTPBearer: []
parameters:
- name: brand_id
in: path
required: true
schema:
type: string
format: uuid
title: Brand Id
- name: platform
in: path
required: true
schema:
type: string
title: Platform
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/v1/platforms/publish/{content_id}:
post:
tags:
- Platforms
summary: Publish To Platform
description: 'Publish a content item to its target platform.
This endpoint:
1. Loads the content and its platform credentials
2. Auto-refreshes expired tokens
3. Posts via the platform adapter (X, YouTube, etc.)
4. Updates the content record with the result
The content must be in a publishable state (draft, approved,
or pending_approval). Credits should already be deducted via
the /content/{id}/publish endpoint before calling this.'
operationId: publish_to_platform_v1_platforms_publish__content_id__post
security:
- HTTPBearer: []
parameters:
- name: content_id
in: path
required: true
schema:
type: string
format: uuid
title: Content Id
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/PublishResponse'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/v1/platforms/boards/{brand_id}:
get:
tags:
- Platforms
summary: List Pinterest Boards
description: 'List Pinterest boards for a connected brand.
Used by the dashboard to let customers choose which board
to pin content to. Only available when Pinterest is connected.'
operationId: list_pinterest_boards_v1_platforms_boards__brand_id__get
security:
- HTTPBearer: []
parameters:
- name: brand_id
in: path
required: true
schema:
type: string
format: uuid
title: Brand Id
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
components:
schemas:
ConnectResponse:
properties:
authorization_url:
type: string
title: Authorization Url
state:
type: string
title: State
type: object
required:
- authorization_url
- state
title: ConnectResponse
description: OAuth redirect URL for the user to authorize.
CallbackResponse:
properties:
success:
type: boolean
title: Success
platform:
type: string
title: Platform
account_username:
anyOf:
- type: string
- type: 'null'
title: Account Username
message:
type: string
title: Message
type: object
required:
- success
- platform
- message
title: CallbackResponse
description: Result of completing OAuth flow.
HTTPValidationError:
properties:
detail:
items:
$ref: '#/components/schemas/ValidationError'
type: array
title: Detail
type: object
title: HTTPValidationError
PlatformStatusResponse:
properties:
brand_id:
type: string
format: uuid
title: Brand Id
platforms:
items:
$ref: '#/components/schemas/PlatformStatus'
type: array
title: Platforms
type: object
required:
- brand_id
- platforms
title: PlatformStatusResponse
description: All platform statuses for a brand.
ConnectRequest:
properties:
brand_id:
type: string
format: uuid
title: Brand Id
description: Brand to connect the platform to
platform:
type: string
title: Platform
description: 'Platform to connect: x, youtube, pinterest'
redirect_uri:
type: string
title: Redirect Uri
description: Frontend URL to redirect after OAuth completes
type: object
required:
- brand_id
- platform
- redirect_uri
title: ConnectRequest
description: Request to initiate OAuth flow for a platform.
PublishResponse:
properties:
success:
type: boolean
title: Success
platform:
type: string
title: Platform
platform_post_id:
anyOf:
- type: string
- type: 'null'
title: Platform Post Id
platform_url:
anyOf:
- type: string
- type: 'null'
title: Platform Url
status:
type: string
title: Status
error_message:
anyOf:
- type: string
- type: 'null'
title: Error Message
type: object
required:
- success
- platform
- status
title: PublishResponse
description: Result of publishing content to a platform.
ValidationError:
properties:
loc:
items:
anyOf:
- type: string
- type: integer
type: array
title: Location
msg:
type: string
title: Message
type:
type: string
title: Error Type
type: object
required:
- loc
- msg
- type
title: ValidationError
CallbackRequest:
properties:
code:
type: string
title: Code
description: Authorization code from the platform
state:
type: string
title: State
description: CSRF state to verify
brand_id:
type: string
format: uuid
title: Brand Id
description: Brand being connected
platform:
type: string
title: Platform
description: Platform being connected
redirect_uri:
type: string
title: Redirect Uri
description: Same redirect_uri used in connect
type: object
required:
- code
- state
- brand_id
- platform
- redirect_uri
title: CallbackRequest
description: OAuth callback parameters (from platform redirect).
PlatformStatus:
properties:
platform:
type: string
title: Platform
connected:
type: boolean
title: Connected
account_username:
anyOf:
- type: string
- type: 'null'
title: Account Username
adapter_available:
type: boolean
title: Adapter Available
type: object
required:
- platform
- connected
- adapter_available
title: PlatformStatus
description: Status of a single platform connection.
securitySchemes:
HTTPBearer:
type: http
scheme: bearer