Within the Lomavis Publishing API, you can enable access for each profile group individually. This way, it's possible to create posts automatically—either as drafts first or scheduled directly for publishing. Each profile group bundles the related social media profiles (like Facebook, Instagram or LinkedIn), and controls centrally which content gets published on which channels.
With this API, you can automate post-planning workflows efficiently—no need to manually make changes in the interface.
Support can unlock the profile groups for you. Please contact support with the name of the profile group at: support@lomavis.com
Prices can be found on the price list.
Here you can find details about the API endpoints: Link to documentation
In your account settings under API-Access you can get the access key for API access and need to set it in the Authorization header like this:
Authorization: Token <API Token>To assign posts to a specific profile group, you have to get the available profile groups first. You can do this through the following URL endpoint.
Profile groups list:
curl -X GET "https://app.lomavis.com/lomavis_publishing_api/v1/profile_groups/" \
-H "Authorization: Token dein_api_token"Profile groups can be unlocked by support. Please contact support with the name of the profile group: support@lomavis.com
Media upload consists of three steps that have to be done one after the other for every media file. After that, the file can be used in a post.
In the first step, you have to register an upload with the metadata for the file you want to upload. The response includes info for the actual file upload and for confirming it later. More details about the payload and the server response can be found in the documentation.
As part of the request to register an upload, you get the details you need for the upload.
{
"uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
"headers": {
"Cache-Control": "string",
"x-goog-meta-user-uuid": "5e5f94c8-e5d0-4515-a040-21ae8813bc7f",
"x-goog-meta-main-user-uuid": "c00ff6fc-9bd9-4a51-a329-6dfa13baa367",
"x-goog-meta-upload-uuid": "e83e8c7b-74ed-40fa-b099-f01d859ad81f",
"x-goog-meta-filename": "string",
"x-goog-meta-content-type": "string",
"x-goog-meta-filesize-in-bytes": 0,
"x-goog-meta-media-library-upload": true,
"x-goog-meta-preview-image-upload": true
},
"url": "http://url-to-upload-media-file-to.com",
"confirm_url": "http://url-to-confirm-upload.com"
}You can use this data to upload your file. For that, you'll need to make a multipart/form-data upload using POST. It's important that you send the request to the url with the headers from headers. The file needs to be sent in the payload with the key file.
File upload via curl:
curl -X POST "http://url-to-upload-media-file-to.com" \
-H "Cache-Control: string" \
-H "x-goog-meta-user-uuid: 5e5f94c8-e5d0-4515-a040-21ae8813bc7f" \
-H "x-goog-meta-main-user-uuid: c00ff6fc-9bd9-4a51-a329-6dfa13baa367" \
-H "x-goog-meta-upload-uuid: e83e8c7b-74ed-40fa-b099-f01d859ad81f" \
-H "x-goog-meta-filename: string" \
-H "x-goog-meta-content-type: string" \
-H "x-goog-meta-filesize-in-bytes: 0" \
-H "x-goog-meta-media-library-upload: true" \
-H "x-goog-meta-preview-image-upload: true" \
-F "file=@/pfad/zu/deiner_datei.jpg"After uploading, you can confirm the upload using a PUT request to the confirm_url.
Confirm file Upload:
curl -X PUT "http://url-to-confirm-upload.com" \
-H "Content-Type: application/json" \
-d '{"success": true}'You'll find more details about confirming it in the documentation.
After these steps, the file is successfully uploaded and the uuid can be used when creating the posts.
With the UUID of the profile group and the UUID of the file upload, posts can be actively scheduled or saved as drafts. You can grab more details about the payload in the documentation.