Rizamo Custom fields API
The team's own fields on posts, such as a campaign, to filter and report by.
The team's own fields on posts, such as a campaign, to filter and report by.
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/rizamo-com:rizamo-com-custom-fields-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: Rizamo Custom fields API
version: '1'
description: Publish, schedule and measure social posts across connected accounts, answer comments and messages, and receive events.
contact:
name: Rizamo
email: hi@rizamo.com
url: https://docs.rizamo.com
servers:
- url: https://api.rizamo.com/v1
security:
- apiKey: []
tags:
- name: Custom Fields
description: The team's own fields on posts, such as a campaign, to filter and report by.
paths:
/fields:
get:
operationId: fields.list
summary: List custom field definitions
description: 'The team''s custom fields, with their keys, types and choices: set them on posts with `fields`, and filter posts and analytics by them.'
tags:
- Custom Fields
parameters:
- name: entity
in: query
schema:
enum:
- post
type: string
description: 'Only fields on this kind of object: post, the only kind today.'
allowEmptyValue: true
allowReserved: true
description: 'Only fields on this kind of object: post, the only kind today.'
responses:
'200':
description: OK
content:
application/json:
schema:
type: object
properties:
items:
type: array
items:
$ref: '#/components/schemas/FieldDefinition'
required:
- items
example:
items:
- key: campaign
entity: post
label: Campaign
type: select
options:
- Winter menu
- Brunch
- Pastry week
description: The campaign a post belongs to.
headers:
Request-Id:
$ref: '#/components/headers/RequestId'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'429':
$ref: '#/components/responses/TooManyRequests'
'500':
$ref: '#/components/responses/InternalServerError'
'503':
$ref: '#/components/responses/ServiceUnavailable'
post:
operationId: fields.create
summary: Create a custom field
description: A field every post can carry, such as a campaign. Its key and type cannot change, and a key is used once per team (409 otherwise).
tags:
- Custom Fields
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
key:
type: string
pattern: ^[a-z][a-z0-9_]{0,39}$
description: Lowercase letters, digits and underscores, starting with a letter. It cannot change.
entity:
enum:
- post
type: string
default: post
description: 'What the field is on: post, the only kind today.'
label:
type: string
minLength: 1
maxLength: 60
description: 'Its name for people, up to 60 characters: "Campaign".'
type:
enum:
- text
- select
- multi_select
- number
- url
- date
- checkbox
type: string
description: text, select, multi_select, number, url, date or checkbox. It cannot change.
options:
type: array
maxItems: 100
items:
type: string
minLength: 1
maxLength: 60
description: The choices of a select or multi_select field. Required for those, refused for the others.
description:
type: string
maxLength: 200
description: What the field is for, up to 200 characters, shown to people and agents.
required:
- key
- label
- type
example:
key: campaign
label: Campaign
type: select
options:
- Winter menu
- Brunch
description: The campaign a post belongs to.
responses:
'201':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/FieldDefinition'
example:
key: campaign
entity: post
label: Campaign
type: select
options:
- Winter menu
- Brunch
description: The campaign a post belongs to.
headers:
Request-Id:
$ref: '#/components/headers/RequestId'
Idempotent-Replayed:
$ref: '#/components/headers/IdempotentReplayed'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'409':
$ref: '#/components/responses/Conflict'
'413':
$ref: '#/components/responses/PayloadTooLarge'
'415':
$ref: '#/components/responses/UnsupportedMediaType'
'422':
$ref: '#/components/responses/UnprocessableEntity'
'429':
$ref: '#/components/responses/TooManyRequests'
'500':
$ref: '#/components/responses/InternalServerError'
'503':
$ref: '#/components/responses/ServiceUnavailable'
parameters:
- $ref: '#/components/parameters/IdempotencyKey'
/fields/{key}:
patch:
operationId: fields.update
summary: Update a custom field
description: The key and type cannot change. Removing an option leaves the value on posts that have it.
tags:
- Custom Fields
parameters:
- name: key
in: path
required: true
schema:
type: string
maxLength: 40
description: The field's key, such as campaign.
description: The field's key, such as campaign.
example: campaign
requestBody:
required: false
content:
application/json:
schema:
type: object
properties:
label:
type: string
minLength: 1
maxLength: 60
description: A new name for people, up to 60 characters.
options:
type: array
maxItems: 100
items:
type: string
minLength: 1
maxLength: 60
description: A select or multi_select field's choices as they should be, every one of them. A choice left out stays on the posts that have it.
description:
anyOf:
- type: string
maxLength: 200
- type: 'null'
description: What the field is for; null removes it.
example:
options:
- Winter menu
- Brunch
- Pastry week
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/FieldDefinition'
example:
key: campaign
entity: post
label: Campaign
type: select
options:
- Winter menu
- Brunch
- Pastry week
description: The campaign a post belongs to.
headers:
Request-Id:
$ref: '#/components/headers/RequestId'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'404':
$ref: '#/components/responses/NotFound'
'409':
$ref: '#/components/responses/Conflict'
'413':
$ref: '#/components/responses/PayloadTooLarge'
'415':
$ref: '#/components/responses/UnsupportedMediaType'
'429':
$ref: '#/components/responses/TooManyRequests'
'500':
$ref: '#/components/responses/InternalServerError'
'503':
$ref: '#/components/responses/ServiceUnavailable'
delete:
operationId: fields.delete
summary: Delete a custom field
description: The field goes from the team, and its values are removed from every post.
tags:
- Custom Fields
parameters:
- name: key
in: path
required: true
schema:
type: string
maxLength: 40
description: The field's key, such as campaign.
description: The field's key, such as campaign.
example: campaign
responses:
'200':
description: OK
content:
application/json:
schema:
type: object
properties:
key:
type: string
required:
- key
example:
key: campaign
headers:
Request-Id:
$ref: '#/components/headers/RequestId'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'404':
$ref: '#/components/responses/NotFound'
'409':
$ref: '#/components/responses/Conflict'
'413':
$ref: '#/components/responses/PayloadTooLarge'
'415':
$ref: '#/components/responses/UnsupportedMediaType'
'429':
$ref: '#/components/responses/TooManyRequests'
'500':
$ref: '#/components/responses/InternalServerError'
'503':
$ref: '#/components/responses/ServiceUnavailable'
components:
responses:
UnsupportedMediaType:
description: '`unsupported_media_type`: The body is not JSON: send it with `Content-Type: application/json`.'
headers:
Request-Id:
$ref: '#/components/headers/RequestId'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
examples:
unsupported_media_type:
summary: unsupported_media_type
value:
error:
code: unsupported_media_type
message: 'The API takes JSON bodies only: send Content-Type: application/json.'
requestId: req_4f1c2b7e9a0d4c6b8e2f1a3d5c7b9e0f
TooManyRequests:
description: '`rate_limited`: Over one of Rizamo''s limits, or a network asked Rizamo to slow down: wait for `Retry-After` seconds, or as long as the message says.'
headers:
Request-Id:
$ref: '#/components/headers/RequestId'
Retry-After:
$ref: '#/components/headers/RetryAfter'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
examples:
rate_limited:
summary: rate_limited
value:
error:
code: rate_limited
message: 'A team makes up to 120 writes a minute (calls that create, change or delete something) to the API and MCP server: try again in a minute.'
requestId: req_4f1c2b7e9a0d4c6b8e2f1a3d5c7b9e0f
BadRequest:
description: '`invalid_request`: A field is missing or wrong, or the request cannot be done as asked: the message names the field or says what to change.'
headers:
Request-Id:
$ref: '#/components/headers/RequestId'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
examples:
invalid_request:
summary: invalid_request
value:
error:
code: invalid_request
message: 'targets.0.accountId: Invalid input: expected string, received undefined'
requestId: req_4f1c2b7e9a0d4c6b8e2f1a3d5c7b9e0f
UnprocessableEntity:
description: '`capability_missing`: The account cannot do this: see its `capabilities`. `idempotency_key_reused`: This `Idempotency-Key` was used for a different request in the last 24 hours: send a new key.'
headers:
Request-Id:
$ref: '#/components/headers/RequestId'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
examples:
capability_missing:
summary: capability_missing
value:
error:
code: capability_missing
message: '@cafelumen on TikTok cannot publish posts.'
requestId: req_4f1c2b7e9a0d4c6b8e2f1a3d5c7b9e0f
idempotency_key_reused:
summary: idempotency_key_reused
value:
error:
code: idempotency_key_reused
message: This Idempotency-Key was used for a different request in the last 24 hours. Send a new key with each new request.
requestId: req_4f1c2b7e9a0d4c6b8e2f1a3d5c7b9e0f
PayloadTooLarge:
description: '`payload_too_large`: The body is over 1 MB: files go up through the upload links of `POST /v1/media`.'
headers:
Request-Id:
$ref: '#/components/headers/RequestId'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
examples:
payload_too_large:
summary: payload_too_large
value:
error:
code: payload_too_large
message: A request to the API may have a body of up to 1 MB. Files go up through the upload links of Add media.
requestId: req_4f1c2b7e9a0d4c6b8e2f1a3d5c7b9e0f
InternalServerError:
description: '`internal`: Our side failed: retry, and send the `requestId` if it keeps failing.'
headers:
Request-Id:
$ref: '#/components/headers/RequestId'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
examples:
internal:
summary: internal
value:
error:
code: internal
message: Something went wrong on our side.
requestId: req_4f1c2b7e9a0d4c6b8e2f1a3d5c7b9e0f
ServiceUnavailable:
description: '`timeout`: The request took too long to work out, most often a report: try again in a moment, or ask a report for a shorter period or one profile.'
headers:
Request-Id:
$ref: '#/components/headers/RequestId'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
examples:
timeout:
summary: timeout
value:
error:
code: timeout
message: This took too long to work out. Ask for a shorter period or one profile, or try again in a moment.
requestId: req_4f1c2b7e9a0d4c6b8e2f1a3d5c7b9e0f
NotFound:
description: '`not_found`: No such object, or it is outside your team or the profiles your key reaches.'
headers:
Request-Id:
$ref: '#/components/headers/RequestId'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
examples:
not_found:
summary: not_found
value:
error:
code: not_found
message: Post post_01m47bjzm0edmtk7w6gp7br39v not found.
requestId: req_4f1c2b7e9a0d4c6b8e2f1a3d5c7b9e0f
Unauthorized:
description: '`unauthorized`: No API key or sign-in, or the key does not work: it was deleted, or it expired.'
headers:
Request-Id:
$ref: '#/components/headers/RequestId'
WWW-Authenticate:
$ref: '#/components/headers/WWWAuthenticate'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
examples:
unauthorized:
summary: unauthorized
value:
error:
code: unauthorized
message: 'This API key does not work: it was deleted, or it expired.'
requestId: req_4f1c2b7e9a0d4c6b8e2f1a3d5c7b9e0f
Forbidden:
description: '`forbidden`: The caller may not do this: the key or agent lacks the scope (the message names it), or the action needs another role or a fresh sign-in.'
headers:
Request-Id:
$ref: '#/components/headers/RequestId'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
examples:
forbidden:
summary: forbidden
value:
error:
code: forbidden
message: This API key does not have the posts:write scope.
requestId: req_4f1c2b7e9a0d4c6b8e2f1a3d5c7b9e0f
Conflict:
description: '`conflict`: The object''s state does not allow it now, such as an account that needs a new login. `queue_empty`: A post with `queue: true` whose profile has no posting times: set them, or give a `scheduledAt`. `queue_full`: No posting time free for the post''s accounts in the next 90 days: add times, or give a `scheduledAt`. `idempotency_key_in_use`: A request with this `Idempotency-Key` is still running: try again in a moment.'
headers:
Request-Id:
$ref: '#/components/headers/RequestId'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
examples:
conflict:
summary: conflict
value:
error:
code: conflict
message: This post is deleted. Restore it first.
requestId: req_4f1c2b7e9a0d4c6b8e2f1a3d5c7b9e0f
queue_empty:
summary: queue_empty
value:
error:
code: queue_empty
message: 'Café Lumen has no posting times in its queue: set them first, or give the post a scheduledAt.'
requestId: req_4f1c2b7e9a0d4c6b8e2f1a3d5c7b9e0f
queue_full:
summary: queue_full
value:
error:
code: queue_full
message: 'Café Lumen''s queue has no free posting time for these accounts in the next 90 days: add times, or give the post a scheduledAt.'
requestId: req_4f1c2b7e9a0d4c6b8e2f1a3d5c7b9e0f
idempotency_key_in_use:
summary: idempotency_key_in_use
value:
error:
code: idempotency_key_in_use
message: A request with this Idempotency-Key is still running. Try again in a moment.
requestId: req_4f1c2b7e9a0d4c6b8e2f1a3d5c7b9e0f
schemas:
Error:
type: object
properties:
error:
type: object
properties:
code:
enum:
- invalid_request
- unauthorized
- forbidden
- not_found
- method_not_allowed
- conflict
- queue_empty
- queue_full
- idempotency_key_in_use
- payload_too_large
- unsupported_media_type
- capability_missing
- idempotency_key_reused
- rate_limited
- internal
- not_implemented
- bad_gateway
- timeout
type: string
description: 'What went wrong, for your code to branch on; the Errors page lists each code with its status. Rizamo may add codes within v1: treat one you do not know by its HTTP status.'
message:
type: string
description: 'What went wrong and what to change, for a person: it names the field at fault, and quotes a network that refused. Show it, never parse it: its words can change.'
required:
- code
- message
requestId:
type: string
description: This request's id, also in the `Request-Id` header. Send it to support when something keeps failing.
required:
- error
- requestId
description: Every error the API answers, whatever its status.
FieldDefinition:
type: object
properties:
key:
type: string
entity:
enum:
- post
type: string
label:
type: string
type:
enum:
- text
- select
- multi_select
- number
- url
- date
- checkbox
type: string
options:
type: array
items:
type: string
description:
type: string
required:
- key
- entity
- label
- type
headers:
WWWAuthenticate:
description: 'How to authenticate: `Bearer realm="Rizamo"`, with `error="invalid_token"` for a key that does not work.'
schema:
type: string
RetryAfter:
description: Seconds to wait before trying again, when the limit reached is one of Rizamo's own per minute.
schema:
type: integer
example: 60
RequestId:
description: 'The request''s id, on every answer: send it to support when something keeps failing.'
schema:
type: string
example: req_4f1c2b7e9a0d4c6b8e2f1a3d5c7b9e0f
IdempotentReplayed:
description: '`true` when this is the first answer to a request with the same `Idempotency-Key`, sent again within 24 hours instead of running it twice.'
schema:
type: string
enum:
- 'true'
parameters:
IdempotencyKey:
name: Idempotency-Key
in: header
required: false
description: '1 to 255 printable characters, new for each request (a UUID); the body up to 1 MB. For 24 hours a repeat with the same key, path and body gets the first answer, with `Idempotent-Replayed: true`, instead of running again; 5xx, 409 and 429 answers are not kept. Errors, Retries, has the rest.'
schema:
type: string
minLength: 1
maxLength: 255
example: 4b9e7c1a-2f3d-4e8a-9c6b-1d2e3f4a5b6c
securitySchemes:
apiKey:
type: http
scheme: bearer
description: An API key from the web app, under Developers. It starts with `rz_live_`.
externalDocs:
description: Guides, errors, limits and the changelog
url: https://docs.rizamo.com