Ping

API Authentication

The Ping API supports multiple authentication methods for different use cases.


Base URL

https://ping-api-production.up.railway.app

Authentication Methods

Session Token (iOS/Web)

Obtained via Sign in with Apple:

Authorization: Bearer <session_token>

Used by the iOS app and web dashboard for user-specific operations.

API Key (Programmatic Access)

Create API keys in the app settings for server-to-server access:

Authorization: Bearer pk_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

API keys work with all authenticated endpoints including channels, messages, and webhook secrets.

Webhook Token (No Header Required)

The webhook endpoint (POST /v1/send/:token) uses the URL token instead of a header:

POST https://ping-api-production.up.railway.app/v1/send/YOUR_TOKEN

No Authorization header needed - the token in the URL is your authentication.


Account Management

Sign In with Apple

Ping uses Sign in with Apple exclusively for authentication. This provides:

  • Security - No passwords to remember or steal
  • Privacy - Option to hide your email address
  • Convenience - Face ID/Touch ID authentication

Your Apple ID links your account across iOS and web.

Cross-Device Sync

Signing in with the same Apple ID on multiple devices syncs:

  • All your channels
  • Complete message history
  • Channel settings

Changes made on any device appear everywhere instantly.

Deleting Your Account

You can permanently delete your account and all associated data:

Terminal
curl -X DELETE 'https://ping-api-production.up.railway.app/v1/auth/user' \
  -H 'Authorization: Bearer YOUR_SESSION_TOKEN'

Response:

JSON
{
  "ok": true,
  "message": "Account and all associated data deleted"
}

Account deletion removes all your data:

DataDescription
MessagesAll notification history
Channel pinsPin preferences
ChannelsAll channels and webhook URLs
FoldersChannel organization
DevicesRegistered push tokens
SessionsAll active sessions
SubscriptionsPlan and payment data
Usage recordsMonthly usage tracking
User accountYour Apple ID association

Warning: This action is permanent and cannot be undone.