Our Developer API

2 min readUpdated Feb 26, 2026

Overview

Pink Narwhal has a REST API for managing servers, backups, and restores programmatically. All requests use Bearer token authentication and return JSON in a { data: ... } envelope.

Base URL: https://pinknarwhal.com/api/v1

Rate limit: 60 requests per minute.

Important

API access requires a Pro or Network plan. Starter plans do not have API access.

Authentication

Every request needs an Authorization header:

Authorization: Bearer your-api-key-here

API keys

Manage your API keys from the API page in the dashboard (admin role required). You can create multiple keys and revoke them individually.

When you create a key, the full token is shown exactly once. Copy it. Store it somewhere safe. We cannot show it to you again.

Endpoints

Servers

MethodEndpointDescription
GET/api/v1/serversList all servers
GET/api/v1/servers/:idGet server details
PATCH/api/v1/servers/:idUpdate server settings

Backups

MethodEndpointDescription
GET/api/v1/servers/:id/backupsList backups for a server
POST/api/v1/servers/:id/backupsTrigger a manual backup
GET/api/v1/backups/:idGet backup details

Restores

MethodEndpointDescription
POST/api/v1/backups/:id/restoreStart a restore
GET/api/v1/restores/:idGet restore status

Usage

MethodEndpointDescription
GET/api/v1/usageGet storage and server count usage

Examples

List your servers:

curl -H "Authorization: Bearer pk_live_abc123" \
  https://pinknarwhal.com/api/v1/servers

Trigger a manual backup:

curl -X POST \
  -H "Authorization: Bearer pk_live_abc123" \
  https://pinknarwhal.com/api/v1/servers/abc123/backups

Check restore status:

curl -H "Authorization: Bearer pk_live_abc123" \
  https://pinknarwhal.com/api/v1/restores/rst_456
Tip

All responses follow the same envelope format: { "data": ... }. Errors include a message field explaining what went wrong.

Was this article helpful?