Autoposting.ai API Keys API
Create, list, update, and revoke API keys for programmatic access to the Autoposting.ai API.
Create, list, update, and revoke API keys for programmatic access to the Autoposting.ai API.
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/autoposting-ai:autoposting-ai-api-keys-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: Autoposting API Keys API
description: 'Schedule, publish, and AI-enhance social content across X, LinkedIn, Instagram, Threads, and YouTube. All responses use the `{ "success": boolean, "data": ... }` envelope. Authenticate with an API key (`Authorization: Bearer sk-social-...` or `x-api-key: sk-social-...`).'
version: 1.0.0
servers:
- url: https://app.autoposting.ai/api-proxy
description: Production
security:
- bearerAuth: []
- apiKeyHeader: []
tags:
- name: API Keys
description: Create, list, update, and revoke API keys for programmatic access to the Autoposting.ai API.
paths:
/api-keys:
post:
tags:
- API Keys
summary: Create an API key
description: Creates a new org-scoped API key. The full `key` value is returned only once in this response.
operationId: createApiKey
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- name
- scopes
properties:
name:
type: string
description: Human-readable label for the key.
example: CI/CD Pipeline Key
scopes:
type: array
description: Permission scopes granted to this key.
items:
type: string
enum:
- posts:read
- posts:write
- brands:read
- brands:write
- clips:read
- clips:write
- carousels:read
- carousels:write
- agents:read
- agents:write
- kbs:read
- kbs:write
- usage:read
example:
- posts:read
- posts:write
- brands:read
expiresAt:
type:
- string
- 'null'
format: date-time
description: ISO 8601 expiry datetime. If omitted, the key does not expire.
responses:
'200':
description: API key created.
content:
application/json:
schema:
type: object
properties:
success:
type: boolean
example: true
data:
$ref: '#/components/schemas/ApiKey'
example:
success: true
data:
id: key_01HXYZ
name: CI/CD Pipeline Key
key: ap_live_abc123xyz789...
scopes:
- posts:read
- posts:write
- brands:read
expiresAt: null
createdAt: '2024-01-01T00:00:00Z'
'401':
description: Missing or invalid authentication.
content:
application/json:
schema:
$ref: '#/components/schemas/ApiKeysError'
example:
success: false
error: unauthorized
message: Missing or invalid API key.
get:
tags:
- API Keys
summary: List API keys
description: Lists API keys for the active organization. Responses include `keyHint` rather than the full key value.
operationId: listApiKeys
responses:
'200':
description: List of API keys.
content:
application/json:
schema:
type: object
properties:
success:
type: boolean
example: true
data:
type: array
items:
$ref: '#/components/schemas/ApiKey'
example:
success: true
data:
- id: key_01HXYZ
name: CI/CD Pipeline Key
keyHint: ap_live_abc1...xyz7
scopes:
- posts:read
- posts:write
- brands:read
lastUsedAt: '2024-01-10T08:00:00Z'
expiresAt: null
createdAt: '2024-01-01T00:00:00Z'
'401':
description: Missing or invalid authentication.
content:
application/json:
schema:
$ref: '#/components/schemas/ApiKeysError'
example:
success: false
error: unauthorized
message: Missing or invalid API key.
/api-keys/{keyId}:
patch:
tags:
- API Keys
summary: Update an API key
description: Updates the name or expiry of an existing key. Scopes cannot be changed after creation.
operationId: updateApiKey
parameters:
- name: keyId
in: path
required: true
description: Identifier of the API key.
schema:
type: string
example: key_01HXYZ
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
name:
type: string
description: New display name.
example: Updated Key Name
expiresAt:
type:
- string
- 'null'
format: date-time
description: New expiry datetime. Set to null to remove expiry.
example: '2025-01-01T00:00:00Z'
responses:
'200':
description: API key updated.
content:
application/json:
schema:
type: object
properties:
success:
type: boolean
example: true
data:
$ref: '#/components/schemas/ApiKey'
example:
success: true
data:
id: key_01HXYZ
name: Updated Key Name
scopes:
- posts:read
- posts:write
- brands:read
expiresAt: '2025-01-01T00:00:00Z'
updatedAt: '2024-01-10T00:00:00Z'
'401':
description: Missing or invalid authentication.
content:
application/json:
schema:
$ref: '#/components/schemas/ApiKeysError'
example:
success: false
error: unauthorized
message: Missing or invalid API key.
delete:
tags:
- API Keys
summary: Revoke an API key
description: Immediately invalidates the key. In-flight requests using this key receive 401 Unauthorized.
operationId: revokeApiKey
parameters:
- name: keyId
in: path
required: true
description: Identifier of the API key.
schema:
type: string
example: key_01HXYZ
responses:
'200':
description: API key revoked.
content:
application/json:
schema:
type: object
properties:
success:
type: boolean
example: true
data:
type: object
example:
success: true
data: {}
'401':
description: Missing or invalid authentication.
content:
application/json:
schema:
$ref: '#/components/schemas/ApiKeysError'
example:
success: false
error: unauthorized
message: Missing or invalid API key.
components:
schemas:
ApiKey:
type: object
description: An API key and its metadata. The full `key` field is present only in the create response; list responses include `keyHint` instead.
properties:
id:
type: string
example: key_01HXYZ
name:
type: string
example: CI/CD Pipeline Key
key:
type: string
description: Full API key value. Returned only once, at creation time.
example: ap_live_abc123xyz789...
keyHint:
type: string
description: Truncated key value shown for identification in list responses.
example: ap_live_abc1...xyz7
scopes:
type: array
items:
type: string
example:
- posts:read
- posts:write
- brands:read
lastUsedAt:
type:
- string
- 'null'
format: date-time
example: '2024-01-10T08:00:00Z'
expiresAt:
type:
- string
- 'null'
format: date-time
example: null
createdAt:
type: string
format: date-time
example: '2024-01-01T00:00:00Z'
updatedAt:
type: string
format: date-time
example: '2024-01-10T00:00:00Z'
ApiKeysError:
type: object
properties:
success:
type: boolean
example: false
error:
type: string
example: unauthorized
message:
type: string
example: Missing or invalid API key.
securitySchemes:
bearerAuth:
type: http
scheme: bearer
description: 'API key as `Authorization: Bearer sk-social-...`'
apiKeyHeader:
type: apiKey
in: header
name: x-api-key
description: 'API key as `x-api-key: sk-social-...`'