Backoffice API
The Backoffice API gives programmatic access to what is done in the Omerlo interface: content and blocks, categories, images, profiles and events, issues, publications, advertising… It is used for imports, synchronizations with other tools and automations. Full reference: Backoffice API.
Base: https://<host>/api/<module>/v2, for instance /api/docs/v2/contents or /api/publisher/v2/publications.
Authenticating
Each call acts on behalf of an Omerlo identity, with its permissions and in its organization.
With an API key
Create an integration (Administration › Identities › Create integration), give it the permissions it needs, then generate its API key.
GET /api/composer/v2/workspaces
x-api-key: <API key>On behalf of a person: custom actions
A custom action passes your tool a token (?token=…, valid 1 hour) identifying the person who clicked. By sending it with the integration’s API key, your tool acts on that person’s behalf:
POST /api/docs/v2/contents
x-api-key: <integration API key>
x-identity-token: <received token>With OAuth 2.1
For an application used by several people, each with their own permissions, use the OAuth 2.1 authorization code flow with PKCE. It is the one AI agents use:
- discovery:
/.well-known/oauth-authorization-server; - client registration:
POST /oauth/register(dynamic, no secret); - authorization:
/oauth/authorize, where the person picks their organization; - tokens:
POST /oauth/token(access 1 hour, refresh 30 days).
Scopes: api:read (reads) and api:write (every other request, deletions included).
Importing an image
Upload the file
POST https://assets.<host>/upload/image
Content-Type: multipart/form-data
image=@photo.jpgJPG, PNG, GIF or WebP, 15 MB maximum. The response holds a temporary key, valid 24 hours.
Save it in the library
Call Create Asset Image (POST /api/core/v2/assets/images) with that key: the response holds the permanent key (file_key), to use in visuals and blocks.
Images are then served from https://assets.<host>/<file_key>, with ?quality=ld|md|hd|original and ?format=webp|png|jpg.
Good practices
- Flag content produced automatically with
is_ai_generatedwhen it is generated by an AI. - Create content as a draft, and let the editorial team review it before setting it to a completed status.
- A 403 response means the identity is not allowed: fix its permissions rather than working around the error.