Docs
POST /get_channel_capabilities
https://heyeveryone.ai/api/v1/get_channel_capabilities
Operation
{
"post": {
"description": "What each platform accepts: post formats (text, thread, image, carousel, reel, short, video...), text limits and how characters are counted, thread limits, media counts, image and video specs (types, sizes, durations, aspect ratios), required settings (e.g. a YouTube title), features only the platform's own app can do, and whether heyeveryone may publish there yet (access: available, pending_review, private_only). A null limit is not confirmed and not checked. Call it before writing a post for a platform, and pass a format id from here to validate_post. Pass `platform` (and optionally `format`) to narrow the answer. For a Sandbox account that behaves like a platform (list_channel_accounts shows `emulates`), pass platform 'sandbox' with that `emulates`: you get the platform's rules with prefixed format ids (x__text, tiktok__video...), the formats that account takes.",
"operationId": "get_channel_capabilities",
"requestBody": {
"content": {
"application/json": {
"schema": {
"properties": {
"platform": {
"enum": [
"x",
"linkedin",
"threads",
"bluesky",
"instagram",
"facebook",
"tiktok",
"youtube",
"sandbox"
],
"type": "string"
},
"format": {
"pattern": "^[a-z][a-z0-9_]*$",
"type": "string"
},
"emulates": {
"enum": [
"x",
"linkedin",
"threads",
"bluesky",
"instagram",
"facebook",
"tiktok",
"youtube"
],
"type": "string"
}
},
"type": "object"
}
}
},
"required": true
},
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"additionalProperties": false,
"properties": {
"platforms": {
"items": {
"additionalProperties": false,
"properties": {
"platform": {
"enum": [
"x",
"linkedin",
"threads",
"bluesky",
"instagram",
"facebook",
"tiktok",
"youtube",
"sandbox"
],
"type": "string"
},
"label": {
"type": "string"
},
"access": {
"enum": [
"available",
"pending_review",
"private_only"
],
"type": "string"
},
"accessNote": {
"type": "string"
},
"connectNote": {
"type": "string"
},
"accountTypes": {
"items": {
"type": "string"
},
"minItems": 1,
"type": "array"
},
"connectChoices": {
"items": {
"additionalProperties": false,
"properties": {
"accountType": {
"pattern": "^[a-z][a-z_]{0,30}$",
"type": "string"
},
"label": {
"type": "string"
},
"description": {
"type": "string"
}
},
"required": [
"accountType",
"label",
"description"
],
"type": "object"
},
"minItems": 2,
"type": "array"
},
"autopilotAllowed": {
"type": "boolean"
},
"autopilotNote": {
"type": "string"
},
"formats": {
"items": {
"additionalProperties": false,
"properties": {
"id": {
"pattern": "^[a-z][a-z0-9_]*$",
"type": "string"
},
"label": {
"type": "string"
},
"description": {
"type": "string"
},
"text": {
"additionalProperties": false,
"properties": {
"required": {
"type": "boolean"
},
"maxChars": {
"anyOf": [
{
"exclusiveMinimum": 0,
"maximum": 9007199254740991,
"type": "integer"
},
{
"type": "null"
}
]
},
"counting": {
"enum": [
"characters",
"graphemes",
"x_weighted",
"utf8_bytes",
"characters_emoji_utf8"
],
"type": "string"
},
"maxBytes": {
"exclusiveMinimum": 0,
"maximum": 9007199254740991,
"type": "integer"
},
"linkLength": {
"exclusiveMinimum": 0,
"maximum": 9007199254740991,
"type": "integer"
},
"maxHashtags": {
"maximum": 9007199254740991,
"minimum": 0,
"type": "integer"
},
"maxMentions": {
"maximum": 9007199254740991,
"minimum": 0,
"type": "integer"
}
},
"required": [
"required",
"maxChars",
"counting"
],
"type": "object"
},
"thread": {
"additionalProperties": false,
"properties": {
"supported": {
"type": "boolean"
},
"maxSegments": {
"anyOf": [
{
"exclusiveMinimum": 0,
"maximum": 9007199254740991,
"type": "integer"
},
{
"type": "null"
}
]
}
},
"required": [
"supported"
],
"type": "object"
},
"media": {
"additionalProperties": false,
"properties": {
"minCount": {
"maximum": 9007199254740991,
"minimum": 0,
"type": "integer"
},
"maxCount": {
"anyOf": [
{
"maximum": 9007199254740991,
"minimum": 0,
"type": "integer"
},
{
"type": "null"
}
]
},
"kinds": {
"items": {
"enum": [
"image",
"video"
],
"type": "string"
},
"type": "array"
},
"mixed": {
"type": "boolean"
},
"perKind": {
"additionalProperties": false,
"properties": {
"image": {
"additionalProperties": false,
"properties": {
"min": {
"maximum": 9007199254740991,
"minimum": 0,
"type": "integer"
},
"max": {
"maximum": 9007199254740991,
"minimum": 0,
"type": "integer"
}
},
"type": "object"
},
"video": {
"additionalProperties": false,
"properties": {
"min": {
"maximum": 9007199254740991,
"minimum": 0,
"type": "integer"
},
"max": {
"maximum": 9007199254740991,
"minimum": 0,
"type": "integer"
}
},
"type": "object"
}
},
"type": "object"
},
"image": {
"additionalProperties": false,
"properties": {
"mimeTypes": {
"anyOf": [
{
"items": {
"type": "string"
},
"minItems": 1,
"type": "array"
},
{
"type": "null"
}
]
},
"maxBytes": {
"anyOf": [
{
"exclusiveMinimum": 0,
"maximum": 9007199254740991,
"type": "integer"
},
{
"type": "null"
}
]
},
"minWidth": {
"exclusiveMinimum": 0,
"maximum": 9007199254740991,
"type": "integer"
},
"minHeight": {
"exclusiveMinimum": 0,
"maximum": 9007199254740991,
"type": "integer"
},
"maxWidth": {
"exclusiveMinimum": 0,
"maximum": 9007199254740991,
"type": "integer"
},
"maxHeight": {
"exclusiveMinimum": 0,
"maximum": 9007199254740991,
"type": "integer"
},
"aspectRatio": {
"additionalProperties": false,
"properties": {
"min": {
"exclusiveMinimum": 0,
"type": "number"
},
"max": {
"exclusiveMinimum": 0,
"type": "number"
},
"labels": {
"default": [],
"items": {
"type": "string"
},
"type": "array"
}
},
"required": [
"min",
"max",
"labels"
],
"type": "object"
}
},
"required": [
"mimeTypes",
"maxBytes"
],
"type": "object"
},
"video": {
"additionalProperties": false,
"properties": {
"mimeTypes": {
"anyOf": [
{
"items": {
"type": "string"
},
"minItems": 1,
"type": "array"
},
{
"type": "null"
}
]
},
"videoCodecs": {
"items": {
"type": "string"
},
"type": "array"
},
"audioCodecs": {
"items": {
"type": "string"
},
"type": "array"
},
"maxBytes": {
"anyOf": [
{
"exclusiveMinimum": 0,
"maximum": 9007199254740991,
"type": "integer"
},
{
"type": "null"
}
]
},
"minDurationMs": {
"anyOf": [
{
"maximum": 9007199254740991,
"minimum": 0,
"type": "integer"
},
{
"type": "null"
}
]
},
"maxDurationMs": {
"anyOf": [
{
"exclusiveMinimum": 0,
"maximum": 9007199254740991,
"type": "integer"
},
{
"type": "null"
}
]
},
"minWidth": {
"exclusiveMinimum": 0,
"maximum": 9007199254740991,
"type": "integer"
},
"maxWidth": {
"exclusiveMinimum": 0,
"maximum": 9007199254740991,
"type": "integer"
},
"maxFrameRate": {
"exclusiveMinimum": 0,
"type": "number"
},
"aspectRatio": {
"additionalProperties": false,
"properties": {
"min": {
"exclusiveMinimum": 0,
"type": "number"
},
"max": {
"exclusiveMinimum": 0,
"type": "number"
},
"labels": {
"default": [],
"items": {
"type": "string"
},
"type": "array"
}
},
"required": [
"min",
"max",
"labels"
],
"type": "object"
}
},
"required": [
"mimeTypes",
"maxBytes",
"minDurationMs",
"maxDurationMs"
],
"type": "object"
},
"altText": {
"additionalProperties": false,
"properties": {
"supported": {
"type": [
"boolean",
"null"
]
},
"maxChars": {
"exclusiveMinimum": 0,
"maximum": 9007199254740991,
"type": "integer"
}
},
"required": [
"supported"
],
"type": "object"
}
},
"required": [
"minCount",
"maxCount",
"kinds",
"mixed",
"altText"
],
"type": "object"
},
"settings": {
"items": {
"additionalProperties": false,
"properties": {
"key": {
"pattern": "^[a-z][a-zA-Z0-9]*$",
"type": "string"
},
"label": {
"type": "string"
},
"description": {
"type": "string"
},
"type": {
"enum": [
"text",
"long_text",
"enum",
"boolean",
"url",
"tags"
],
"type": "string"
},
"required": {
"type": "boolean"
},
"maxChars": {
"exclusiveMinimum": 0,
"maximum": 9007199254740991,
"type": "integer"
},
"options": {
"items": {
"additionalProperties": false,
"properties": {
"value": {
"type": "string"
},
"label": {
"type": "string"
}
},
"required": [
"value",
"label"
],
"type": "object"
},
"type": "array"
},
"default": {
"anyOf": [
{
"type": "string"
},
{
"type": "boolean"
},
{
"items": {
"type": "string"
},
"type": "array"
}
]
}
},
"required": [
"key",
"label",
"description",
"type",
"required"
],
"type": "object"
},
"type": "array"
},
"manualOnly": {
"items": {
"additionalProperties": false,
"properties": {
"key": {
"pattern": "^[a-z][a-z0-9_]*$",
"type": "string"
},
"description": {
"type": "string"
}
},
"required": [
"key",
"description"
],
"type": "object"
},
"type": "array"
},
"mediaTransfer": {
"enum": [
"public_url",
"upload",
"either"
],
"type": "string"
},
"delivery": {
"enum": [
"publish",
"draft"
],
"type": "string"
}
},
"required": [
"id",
"label",
"description",
"text",
"thread",
"media",
"settings",
"manualOnly",
"mediaTransfer"
],
"type": "object"
},
"minItems": 1,
"type": "array"
},
"metrics": {
"items": {
"enum": [
"impressions",
"views",
"likes",
"comments",
"shares",
"saves",
"clicks"
],
"type": "string"
},
"type": "array"
},
"repost": {
"additionalProperties": false,
"properties": {
"identicalText": {
"enum": [
"allowed",
"blocked"
],
"type": "string"
},
"note": {
"type": "string"
}
},
"required": [
"identicalText"
],
"type": "object"
},
"dailyPostLimit": {
"additionalProperties": false,
"properties": {
"posts": {
"exclusiveMinimum": 0,
"maximum": 9007199254740991,
"type": "integer"
},
"note": {
"minLength": 1,
"type": "string"
}
},
"required": [
"posts",
"note"
],
"type": "object"
},
"comments": {
"additionalProperties": false,
"properties": {
"support": {
"enum": [
"read",
"none"
],
"type": "string"
},
"refresh": {
"enum": [
"scheduled",
"on_demand"
],
"type": "string"
},
"note": {
"minLength": 1,
"type": "string"
}
},
"required": [
"support",
"refresh",
"note"
],
"type": "object"
},
"delete": {
"additionalProperties": false,
"properties": {
"support": {
"enum": [
"api",
"manual"
],
"type": "string"
},
"note": {
"minLength": 1,
"type": "string"
},
"steps": {
"items": {
"minLength": 1,
"type": "string"
},
"type": "array"
}
},
"required": [
"support",
"note"
],
"type": "object"
},
"accountMetrics": {
"additionalProperties": false,
"properties": {
"support": {
"enum": [
"read",
"none"
],
"type": "string"
},
"metrics": {
"items": {
"enum": [
"followers",
"following",
"posts",
"reach",
"views"
],
"type": "string"
},
"type": "array"
},
"note": {
"minLength": 1,
"type": "string"
}
},
"required": [
"support",
"metrics",
"note"
],
"type": "object"
},
"manualResults": {
"additionalProperties": false,
"properties": {
"accountTypes": {
"items": {
"pattern": "^[a-z][a-z_]{0,30}$",
"type": "string"
},
"minItems": 1,
"type": "array"
},
"note": {
"minLength": 1,
"type": "string"
},
"fields": {
"items": {
"additionalProperties": false,
"properties": {
"metric": {
"enum": [
"impressions",
"views",
"likes",
"comments",
"shares",
"saves",
"clicks"
],
"type": "string"
},
"label": {
"minLength": 1,
"type": "string"
}
},
"required": [
"metric",
"label"
],
"type": "object"
},
"minItems": 1,
"type": "array"
}
},
"required": [
"accountTypes",
"note",
"fields"
],
"type": "object"
},
"sources": {
"items": {
"additionalProperties": false,
"properties": {
"title": {
"type": "string"
},
"url": {
"format": "uri",
"type": "string"
},
"checkedOn": {
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
"type": "string"
}
},
"required": [
"title",
"url",
"checkedOn"
],
"type": "object"
},
"type": "array"
},
"notes": {
"default": [],
"items": {
"type": "string"
},
"type": "array"
}
},
"required": [
"platform",
"label",
"access",
"accountTypes",
"formats",
"repost",
"sources",
"notes"
],
"type": "object"
},
"type": "array"
}
},
"required": [
"platforms"
],
"type": "object"
}
}
},
"description": "Success"
},
"400": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
},
"description": "invalid_input: the body does not match the schema"
},
"401": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
},
"description": "unauthenticated: missing, invalid, expired or revoked token"
},
"403": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
},
"description": "forbidden: the agent may not do this (for example, another workspace)"
},
"404": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
},
"description": "not_found"
},
"409": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
},
"description": "conflict"
},
"422": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
},
"description": "Service-specific errors: unknown_format"
},
"429": {
"$ref": "#/components/responses/RateLimited"
},
"500": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
},
"description": "internal_error"
}
},
"summary": "Get channel capabilities",
"tags": [
"account"
],
"x-heyeveryone-kind": "query"
}
}Referenced definitions
{
"schemas": {
"Error": {
"properties": {
"error": {
"description": "A stable error code, for example forbidden.",
"type": "string"
},
"message": {
"description": "What went wrong, in plain words.",
"type": "string"
}
},
"required": [
"error",
"message"
],
"type": "object"
}
},
"responses": {
"RateLimited": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
},
"description": "rate_limited: too many requests from this agent, account or address (docs/setup/agents.md, Rate limits); wait the Retry-After seconds, then retry",
"headers": {
"Retry-After": {
"description": "Seconds to wait before retrying.",
"schema": {
"minimum": 1,
"type": "integer"
}
}
}
}
}
}Authentication
{
"bearer": {
"description": "Personal access token (hey_pat_...)",
"scheme": "bearer",
"type": "http"
},
"oauth": {
"flows": {
"authorizationCode": {
"authorizationUrl": "https://heyeveryone.ai/oauth/authorize",
"refreshUrl": "https://heyeveryone.ai/oauth/token",
"scopes": {
"agent": "Act as your agent in the workspaces you choose"
},
"tokenUrl": "https://heyeveryone.ai/oauth/token"
}
},
"type": "oauth2"
}
}Security requirements
[
{
"bearer": []
},
{
"oauth": [
"agent"
]
}
]