Skip to content

Get a platform's posting schema

GET
/public/v1/platforms/{id}/schema
curl --request GET \
--url https://api.loomta.com/public/v1/platforms/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/schema \
--header 'Authorization: Bearer <token>'

Returns the content/media limits and the provider-specific setting fields for one platform. Read these account-specific values (e.g. the TikTok privacy_level options) before creating a post rather than hard-coding them.

id
required
string format: uuid

The platform (connected account) UUID from GET /platforms.

The platform and its schema.

Media typeapplication/json
object
platform
required
object
id
string format: uuid
provider

Currently only tiktok is offered.

string
Allowed values: tiktok instagram threads
providerName
string
providerAccountId
string
displayName
string | null
displayHandle
string | null
displayImageUrl
string | null
disabled
boolean
refreshNeeded
boolean
tokenExpiresAt
string | null format: date-time
capabilities
Array<string>
metadata
object
key
additional properties
any
settings
object
key
additional properties
any
schema
required
object
provider
string
Allowed values: tiktok instagram threads
content
object
required
boolean
maxLength
integer | null
media
object
required
boolean
allowedTypes
Array<string>
Allowed values: image video audio file
minItems
integer
maxItems
integer
supportsMixedTypes
boolean
rules
Array<string>
comments
object
supported
boolean
mediaSupported
boolean
delayInMinutesSupported
boolean
settings
object
fields
Array<object>
object
name
string
type
string
Allowed values: string boolean enum
required
boolean
default
One of:
string
enum
Array<string>
description
string
Example
{
"platform": {
"provider": "tiktok",
"providerName": "TikTok",
"displayHandle": "@myhandle"
},
"schema": {
"provider": "tiktok",
"content": {
"maxLength": 2200
},
"media": {
"allowedTypes": [
"image"
],
"maxItems": 35
},
"settings": {
"fields": [
{
"name": "privacy_level",
"type": "string"
}
]
}
}
}

The API key is missing or invalid.

Media typeapplication/json
object
code
required

A stable, machine-readable error code to branch on.

string
message
required

A human-readable description.

string
details

Optional structured detail (for example Zod validation issues).

Examples
{
"code": "missing_api_key",
"message": "A Bearer API key is required."
}

Platform is missing, disabled, or requires refresh.

Media typeapplication/json
object
code
required

A stable, machine-readable error code to branch on.

string
message
required

A human-readable description.

string
details

Optional structured detail (for example Zod validation issues).

Example
{
"code": "platform_not_found",
"message": "Platform is missing, disabled, or requires refresh."
}