{{toast.message}}

API

The push and pull endpoints authenticate with an API key. Create one under Settings → API Keys and send it as the x-api-key header. No cookies and no login step, so a plain curl works.

Profiles and their public pushes are open to anyone and need no key.

All responses are JSON.

POST /api/push

Publish a private push. It goes to no Inbox and is not on your profile: only you and the users @mentioned in it can see it. Your own devices are not notified. To publish to everyone, use /api/push/all.

Parameters

text body, required unless an image is sent
The message to send. Anything beyond 160 characters is trimmed off. @mention users to notify them too, e.g. @alice @bob deploy finished. A mentioned user is only notified if you are in their contacts; either way the push shows up under their Mentions.
image file, optional
A JPEG, PNG or WebP image up to 5 MB. Send the request as multipart/form-data instead of JSON to attach one. It is shown under the push and, where the browser supports it (Chrome and Edge on Windows, Linux, ChromeOS and Android), inside the notification. Images are deleted with the push after 24 hours.

Example

curl -X POST https://pushout.app/api/push \
  -H "x-api-key: $PUSHIE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"text": "Deployment finished on production"}'

# With an image
curl -X POST https://pushout.app/api/push \
  -H "x-api-key: $PUSHIE_API_KEY" \
  -F "text=New dashboard snapshot" \
  -F "image=@./snapshot.png"

Response

{
  "message": "Private push sent",
  "_id": "68bd0f3c9a1b4c2d5e6f7a80",
  "from": { "username": "you", "name": "You", "avatarUrl": null },
  "text": "Deployment finished on production",
  "image": null,
  "private": true,
  "mentions": [],
  "date": "2026-09-07T10:24:11.000Z"
}

Limited to 25 requests every 5 minutes, shared between /api/push and /api/push/all.

POST /api/push/all

Publish a public push. It lands in the Inbox of every browser subscribed to your profile, and shows on your profile page. Users @mentioned in it are notified as with /api/push.

Parameters

text body, required unless an image is sent
The message to send. Anything beyond 160 characters is trimmed off. @mention users to notify them too, e.g. @alice @bob deploy finished. A mentioned user is only notified if you are in their contacts; either way the push shows up under their Mentions.
image file, optional
A JPEG, PNG or WebP image up to 5 MB. Send the request as multipart/form-data instead of JSON to attach one. It is shown under the push and, where the browser supports it (Chrome and Edge on Windows, Linux, ChromeOS and Android), inside the notification. Images are deleted with the push after 24 hours.

Example

curl -X POST https://pushout.app/api/push/all \
  -H "x-api-key: $PUSHIE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"text": "v2.3 is live"}'

# With an image
curl -X POST https://pushout.app/api/push/all \
  -H "x-api-key: $PUSHIE_API_KEY" \
  -F "text=New dashboard snapshot" \
  -F "image=@./snapshot.png"

Response

{
  "message": "Push sent",
  "_id": "68bd0f3c9a1b4c2d5e6f7a80",
  "from": { "username": "you", "name": "You", "avatarUrl": null },
  "text": "v2.3 is live",
  "image": null,
  "private": false,
  "mentions": [],
  "date": "2026-09-07T10:24:11.000Z"
}

Limited to 25 requests every 5 minutes, shared between /api/push and /api/push/all.

GET /api/pull

Your Mentions, newest first: your own pushes (public and private), and every push that @mentions you from one of your contacts.

Parameters

from query, optional
contacts (default) or everyone, to include mentions from anyone.
skip query, optional
How many pushes to skip. Defaults to 0. Each call returns up to 50 pushes.

Example

curl "https://pushout.app/api/pull?skip=50" \
  -H "x-api-key: $PUSHIE_API_KEY"

Response

{
  "pushes": [
    {
      "_id": "68bd0f3c9a1b4c2d5e6f7a80",
      "from": { "username": "alice", "name": "Alice", "avatarUrl": "/@alice/avatar.webp?v=3f9a1c2e7b4d" },
      "text": "Deployment finished on production",
      "image": { "url": "/images/5f2c0e8a9b1d4c7e8f3a6b2d1c0e9f8a.webp", "width": 1440, "height": 810 },
      "private": false,
      "mentions": ["you"],
      "date": "2026-09-07T10:24:11.000Z"
    }
  ]
}

Pushes are deleted 24 hours after they are sent, so this only ever returns the last day.

GET /api/@username

A user's public profile. No API key needed.

Example

curl https://pushout.app/api/@alice

Response

{
  "username": "alice",
  "name": "Alice",
  "avatarUrl": "/@alice/avatar.webp?v=3f9a1c2e7b4d",
  "bio": "Ships things.",
  "color": "",
  "joinedOn": "2026-03-14T08:00:00.000Z",
  "subscribers": 12,
  "isMe": false,
  "isContact": false,
  "onThisDevice": false,
  "deviceNotifications": false
}

isMe, isContact, onThisDevice and deviceNotifications are for the web app and are always false from a script. Returns 404 if there is no such user.

GET /api/@username/pull

A user's public pushes, newest first. Private pushes are never included. No API key needed.

Parameters

skip query, optional
How many pushes to skip. Defaults to 0. Each call returns up to 50 pushes.

Example

curl "https://pushout.app/api/@alice/pull?skip=50"

Response

Same shape as /api/pull:

{
  "pushes": [
    {
      "_id": "68bd0f3c9a1b4c2d5e6f7a80",
      "from": { "username": "alice", "name": "Alice", "avatarUrl": "/@alice/avatar.webp?v=3f9a1c2e7b4d" },
      "text": "Deployment finished on production",
      "image": null,
      "private": false,
      "mentions": [],
      "date": "2026-09-07T10:24:11.000Z"
    }
  ]
}

Returns 404 if there is no such user.

Errors

Failures come back with a matching status code and a JSON body whose message key holds the error message.

{ "message": "Unauthorized" }
400
The request was invalid, for example text is empty or invalid.
401
The x-api-key header is not a valid API key.
403
A POST was sent without the x-api-key header, or the account's email is not verified yet. Only accounts with a verified email can send pushes.
404
No endpoint at that path, or no user with that username.
429
You went past a rate limit. The message says how long to wait.