Accounts
Connected social accounts, whether they can post, and their boards, playlists and subreddits.
List connected accounts
Section titled “List connected accounts”/v1/accountsParameters
profileIdstring
Response 200
data []
idstringrequiredprofileIdstringrequiredplatformstringrequiredusernamestringdisplayNamestringavatarUrlstring (uri)statusstringrequiredconnectedAtstring (date-time)requiredupdatedAtstring (date-time)required
curl "https://api.marsial.dev/v1/accounts?profileId=prf_8f2k4d" \ -H "Authorization: Bearer $MARSIAL_API_KEY"const res = await fetch('https://api.marsial.dev/v1/accounts?profileId=prf_8f2k4d', { headers: { Authorization: `Bearer ${process.env.MARSIAL_API_KEY}`, },});const { data } = await res.json();import os, requests
res = requests.get( "https://api.marsial.dev/v1/accounts?profileId=prf_8f2k4d", headers={"Authorization": f"Bearer {os.environ['MARSIAL_API_KEY']}"},)data = res.json()["data"]Get a connected account
Section titled “Get a connected account”/v1/accounts/{id}Parameters
idstringrequired
Response 200
data
idstringrequiredprofileIdstringrequiredplatformstringrequiredusernamestringdisplayNamestringavatarUrlstring (uri)statusstringrequiredconnectedAtstring (date-time)requiredupdatedAtstring (date-time)required
curl "https://api.marsial.dev/v1/accounts/acc_3k9x2m" \ -H "Authorization: Bearer $MARSIAL_API_KEY"const res = await fetch('https://api.marsial.dev/v1/accounts/acc_3k9x2m', { headers: { Authorization: `Bearer ${process.env.MARSIAL_API_KEY}`, },});const { data } = await res.json();import os, requests
res = requests.get( "https://api.marsial.dev/v1/accounts/acc_3k9x2m", headers={"Authorization": f"Bearer {os.environ['MARSIAL_API_KEY']}"},)data = res.json()["data"]Disconnect an account
Section titled “Disconnect an account”/v1/accounts/{id}Parameters
idstringrequired
Response 204
No content
curl -X DELETE "https://api.marsial.dev/v1/accounts/acc_3k9x2m" \ -H "Authorization: Bearer $MARSIAL_API_KEY"await fetch('https://api.marsial.dev/v1/accounts/acc_3k9x2m', { method: 'DELETE', headers: { Authorization: `Bearer ${process.env.MARSIAL_API_KEY}`, },});import os, requests
requests.delete( "https://api.marsial.dev/v1/accounts/acc_3k9x2m", headers={"Authorization": f"Bearer {os.environ['MARSIAL_API_KEY']}"},)Check whether accounts can post
Section titled “Check whether accounts can post”/v1/accounts/healthAsks each network right now. Accounts that need reconnecting are updated to needs_reconnection.
Parameters
profileIdstringrequired
Response 200
data []
accountIdstringrequiredplatformstringrequiredstatusstringrequiredcanPostbooleanrequiredneedsReconnectionbooleanrequiredissuesstring[]required
curl "https://api.marsial.dev/v1/accounts/health?profileId=prf_8f2k4d" \ -H "Authorization: Bearer $MARSIAL_API_KEY"const res = await fetch('https://api.marsial.dev/v1/accounts/health?profileId=prf_8f2k4d', { headers: { Authorization: `Bearer ${process.env.MARSIAL_API_KEY}`, },});const { data } = await res.json();import os, requests
res = requests.get( "https://api.marsial.dev/v1/accounts/health?profileId=prf_8f2k4d", headers={"Authorization": f"Bearer {os.environ['MARSIAL_API_KEY']}"},)data = res.json()["data"]Check whether one account can post
Section titled “Check whether one account can post”/v1/accounts/{id}/healthThe same check as the profile’s, for one account. Sites, CRMs and ads connections never take posts (canPost: false).
Parameters
idstringrequired
Response 200
data
accountIdstringrequiredplatformstringrequiredstatusstringrequiredcanPostbooleanrequiredneedsReconnectionbooleanrequiredissuesstring[]required
curl "https://api.marsial.dev/v1/accounts/acc_3k9x2m/health" \ -H "Authorization: Bearer $MARSIAL_API_KEY"const res = await fetch('https://api.marsial.dev/v1/accounts/acc_3k9x2m/health', { headers: { Authorization: `Bearer ${process.env.MARSIAL_API_KEY}`, },});const { data } = await res.json();import os, requests
res = requests.get( "https://api.marsial.dev/v1/accounts/acc_3k9x2m/health", headers={"Authorization": f"Bearer {os.environ['MARSIAL_API_KEY']}"},)data = res.json()["data"]List boards, playlists, subreddits or flairs
Section titled “List boards, playlists, subreddits or flairs”/v1/accounts/{id}/{kind}kind is pinterest-boards, youtube-playlists, reddit-subreddits or reddit-flairs (with subreddit). Use the ids in the post options.
Parameters
idstringrequiredkindstringrequiredsubredditstringRequired for reddit-flairs.
Response 200
data []
idstringrequiredSend it as boardId, playlistId, subreddit or flairId.
namestringrequireddetailstringisDefaultbooleanThe account's default, used when a post does not pick one.
curl "https://api.marsial.dev/v1/accounts/acc_3k9x2m/{kind}" \ -H "Authorization: Bearer $MARSIAL_API_KEY"const res = await fetch('https://api.marsial.dev/v1/accounts/acc_3k9x2m/{kind}', { headers: { Authorization: `Bearer ${process.env.MARSIAL_API_KEY}`, },});const { data } = await res.json();import os, requests
res = requests.get( "https://api.marsial.dev/v1/accounts/acc_3k9x2m/{kind}", headers={"Authorization": f"Bearer {os.environ['MARSIAL_API_KEY']}"},)data = res.json()["data"]What a CRM account syncs
Section titled “What a CRM account syncs”/v1/accounts/{id}/crm-settingsHubSpot accounts take no posts: they turn the people who write to the profile's inbox into contacts and log every message on their timeline.
Parameters
idstringrequired
Response 200
data
syncContactsbooleanrequiredCreate a CRM contact for each new person who writes.
logMessagesbooleanrequiredLog every inbox message on the contact's timeline.
curl "https://api.marsial.dev/v1/accounts/acc_3k9x2m/crm-settings" \ -H "Authorization: Bearer $MARSIAL_API_KEY"const res = await fetch('https://api.marsial.dev/v1/accounts/acc_3k9x2m/crm-settings', { headers: { Authorization: `Bearer ${process.env.MARSIAL_API_KEY}`, },});const { data } = await res.json();import os, requests
res = requests.get( "https://api.marsial.dev/v1/accounts/acc_3k9x2m/crm-settings", headers={"Authorization": f"Bearer {os.environ['MARSIAL_API_KEY']}"},)data = res.json()["data"]Turn CRM sync on or off
Section titled “Turn CRM sync on or off”/v1/accounts/{id}/crm-settingsParameters
idstringrequired
Body
syncContactsbooleanCreate a CRM contact for each new person who writes.
logMessagesbooleanLog every inbox message on the contact's timeline.
Response 200
data
syncContactsbooleanrequiredCreate a CRM contact for each new person who writes.
logMessagesbooleanrequiredLog every inbox message on the contact's timeline.
curl -X PATCH "https://api.marsial.dev/v1/accounts/acc_3k9x2m/crm-settings" \ -H "Authorization: Bearer $MARSIAL_API_KEY"const res = await fetch('https://api.marsial.dev/v1/accounts/acc_3k9x2m/crm-settings', { method: 'PATCH', headers: { Authorization: `Bearer ${process.env.MARSIAL_API_KEY}`, },});const { data } = await res.json();import os, requests
res = requests.patch( "https://api.marsial.dev/v1/accounts/acc_3k9x2m/crm-settings", headers={"Authorization": f"Bearer {os.environ['MARSIAL_API_KEY']}"},)data = res.json()["data"]© 2026 Marsial by TWOFACES ·marsial.dev ·Dashboard ·soporte@twofacesco.com