Back to dashboard

API reference

Everything you can do in the dashboard, from a script or an AI agent like Claude.

Base URL https://profitphones.io/api/v1. Send Authorization: Bearer pfk_… on every request.

The API is part of the Full plan. On other plans requests return 402.

A key only sees the workspace it was made in and only does what its scopes allow. Team, billing and keys themselves are never reachable with a key.

Giving it to an AI? Point it at the plain text version.

ScopesWorkspaceAccountsPhonesPostsLibraryAnalyticsAutomations

Scopes

Workspace

Who the key belongs to and what it may do.

GET/me

The workspace, plan and the scopes this key has.

GET/scopes

Every scope and what it allows.

GET/platforms

Platforms, the formats each takes, and whether Android phones and iPhones can post to it yet (android, iphone).

GET/summaryaccounts:read

Counts at a glance: phones online, posts queued, posted today.

Accounts

A social account (platform + handle) that lives on one phone.

GET/accountsaccounts:read

Every account with its phone, status, followers and queue.

GET/accounts/detectedaccounts:read

Accounts the phones report as logged in.

POST/accountsaccounts:write

Add an account.

{ "platform": "instagram_reels", "handle": "brandname", "device_id": "s1:R8YL…", "client_id": 3 }
POST/accounts/locateaccounts:write

Find which phone an account is logged in on (checks idle phones).

{ "platform": "instagram_reels", "handle": "brandname" }
PATCH/accounts/:idaccounts:write

Move to another phone, pause, rename or set the client.

{ "device_id": "s1:…", "paused": true, "display_name": "…", "client_id": 3 }
DELETE/accounts/:idaccounts:write

Remove an account. Its queued posts are removed too.

POST/devices/:id/checkaccounts:write

Make a phone read which accounts are logged in (and their followers and views).

GET/clientsaccounts:read

Clients (groups of accounts).

POST/clientsaccounts:write

Add a client.

{ "name": "Acme" }
DELETE/clients/:idaccounts:write

Remove a client.

Phones

Phones plugged into your computers. Control actions are skipped while a phone is posting.

GET/phonesphones:read

Phones with online status and their accounts (simple list).

GET/devicesphones:read

Phones with full detail.

GET/devices/:id/screenphones:read

A screenshot of the phone (image).

GET/devices/:id/foundphones:read

What the last account check found on this phone.

GET/devices/:id/notesphones:read

Post-it notes on a phone.

GET/watchdogphones:read

Every phone's health in plain words, with a fix for each problem.

GET/appsphones:read

Apps you can open with /devices/:id/open.

PATCH/devices/:idphones:control

Rename a phone or set its client.

{ "label": "Rack 1 · 04", "client_id": 3 }
POST/devices/:id/tapphones:control

Tap at a point, as fractions of the screen (0 to 1).

{ "fx": 0.5, "fy": 0.82 }
POST/devices/:id/swipephones:control

Swipe between two points (fractions of the screen).

{ "fx1": 0.5, "fy1": 0.8, "fx2": 0.5, "fy2": 0.3, "ms": 300 }
POST/devices/:id/textphones:control

Type into the selected field.

{ "text": "hello" }
POST/devices/:id/keyphones:control

Press back, home, recents or wake.

{ "key": "home" }
POST/devices/:id/pressphones:control

Press a hardware key (volume, power and others).

{ "key": "volup" }
POST/devices/:id/openphones:control

Open an app.

{ "app": "instagram" }
POST/devices-bulkphones:control

Open an app or press a key on many phones at once.

{ "ids": ["s1:…"], "app": "instagram" }
POST/devices/:id/notesphones:control

Add a note to a phone.

{ "text": "Needs a new SIM" }
DELETE/notes/:idphones:control

Remove a note.

DELETE/devices/:idphones:control

Forget an unplugged phone.

GET/proxiesphones:read

Proxies and which account uses each.

POST/proxiesphones:control

Add proxies, one per line.

{ "lines": "host:port:user:pass" }
PATCH/proxies/:idphones:control

Note which account a proxy belongs to. The phones do not switch to it on their own yet; set the proxy on the phone itself.

{ "account_id": 12 }
POST/proxies/checkphones:control

Test that the proxies answer.

DELETE/proxies/:idphones:control

Remove a proxy.

Posts

One video going to one account. Status: importing, queued, running, then posted, or failed / needs_review. format says what it posts as: "reel" (an Instagram Reel, a TikTok video or a YouTube Short) or "story" (Instagram only). A Story can carry a link, shown as a link sticker. A post waiting on something it can't fix itself (for example a phone type that can't post that platform yet) stays queued with the reason in error.

GET/postsposts:read

Posts, newest first. Filters: status, account_id, external_id, updated_since, limit (max 500).

GET/posts/:idposts:read

One post.

POST/postsposts:write

Schedule a video. Send a file as multipart "video", or JSON with video_url (direct https file) or source_url (Instagram/TikTok/YouTube link). Pick the account by account_id or platform + handle. external_id makes retries safe (same id returns the existing post). format: reel (default), story or both (Instagram only; both makes a reel and a story from the same video, the story is returned under "also"). link: optional https link for the story sticker.

{ "account_id": 12, "video_url": "https://…/clip.mp4", "caption": "…", "scheduled_at": "2026-11-10T15:00:00Z", "mode": "publish", "format": "reel|story|both", "link": "https://yoursite.com", "external_id": "my-123" }
PATCH/posts/:idposts:write

Change caption, time, format (reel or story) or story link, retry, or mark as posted.

{ "caption": "…", "scheduled_at": "…", "format": "story", "link": "https://…", "action": "retry" }
DELETE/posts/:idposts:write

Cancel a post that hasn't gone out.

POST/importposts:write

Queue many social links at once, spaced out.

{ "account_id": 12, "urls": "https://… https://…", "spacing_minutes": 60, "use_original_caption": true, "format": "reel|story|both", "link": "https://…" }
GET/inboxposts:read

Links shared to the dashboard from the phones.

POST/inbox/clearposts:write

Clear shared links.

{ "ids": [1, 2] }

Library

Your stored videos and images, filed per account or Shared.

GET/librarylibrary:read

Files and the folder tree. Query: folder=all|shared|favorites|<account id>, kind=video|image, q.

GET/library/file/:idlibrary:read

Download a file.

GET/library/thumb/:idlibrary:read

A file's thumbnail.

POST/librarylibrary:write

Upload files as multipart "files" (up to 200). Add account_id to file them under that account, or leave it out for Shared.

PATCH/librarylibrary:write

Move files to an account (or Shared with null), or favorite them.

{ "ids": [5, 6], "account_id": 12, "favorite": true }
DELETE/librarylibrary:write

Delete files.

{ "ids": [5, 6] }
POST/library/postposts:write

Turn Library videos into scheduled posts.

{ "ids": [5, 6], "account_id": 12, "start_at": "…", "spacing_minutes": 60, "caption": "…", "format": "reel|story|both", "link": "https://…" }

Analytics

Read from the phones every hour.

GET/analyticsanalytics:read

Total views, followers, growth, daily series, per account numbers and best videos. Query: days=7|30|90.

Automations

Things that run by themselves. "live" on each one is the real state right now (for example phone_off when the phone is disconnected).

GET/autopostautomations:read

Auto-posting rules with live status. Query: device_id to limit to one phone.

GET/autopost/:idautomations:read

One rule with its recent posts.

POST/autopostautomations:write

Start auto-posting the videos in each account's Library folder. One rule per account. format: reel (default), story or both (Instagram only; both posts every video as a reel and as a story). link: optional story link sticker.

{ "account_ids": [12], "per_day": 3, "hour_from": 9, "hour_to": 21, "timezone": "America/New_York", "caption_mode": "same|filename|none", "caption": "…", "use_shared": false, "mode": "publish", "format": "reel|story|both", "link": "https://yoursite.com" }
PUT/autopost/:idautomations:write

Pause, resume or change a rule (any field from POST, plus status).

{ "status": "paused", "per_day": 2, "format": "both" }
DELETE/autopost/:idautomations:write

Stop auto-posting. Videos stay in the Library.

GET/warmupautomations:read

Warm-up plans with live status. Plans are saved and can be switched on, but the phones do not run warm-up sessions yet. They start once warm-up goes live.

POST/warmupautomations:write

Create a warm-up plan.

{ "name": "…", "status": "active", "settings": { … }, "account_ids": [12] }
PUT/warmup/:idautomations:write

Change, pause or switch on a plan.

DELETE/warmup/:idautomations:write

Delete a plan.