Overview
ShortPen’s REST API exposes the same capabilities that power the dashboard. Use it to:- generate branded short links and QR codes from automations or backend jobs,
- sync domains, folders, pixels, and workspaces into your internal tools, and
- export click analytics for reporting, BI, or attribution.
Base URL
Authentication
Create an API key
In the app, open Settings → Organization → API Keys and click + Create API key. Give the key a name so you can identify it later.
Store the secret securely
Copy the generated value immediately—it is only shown once. Save it in your secrets manager, CI/CD vault, or password manager.
Make your first request
Common headers
Authorization: Bearer <api-key>Content-Type: application/jsonAccept: application/json
Rate limits
- Global API limit: 60 requests per minute per access token.
GET /v1/pingalso enforcesthrottle, capping the endpoint at 30 requests per minute per IP.- Feature-specific quotas (for example monthly short links or QR codes) return HTTP 429 with a descriptive message once exhausted.
Response envelope
Every JSON endpoint responds with the same envelope:data varies per operation—see the endpoint pages below for full schemas. Errors return the same structure with success: false, status_code mirroring the HTTP status, and a human-readable message.
Next steps
Check API availability
Call the health check endpoint to verify DNS, TLS, and routing.
Pull your profile
Inspect enabled features, limits, and the workspace automatically selected for your token.
Create short links
Generate links, QR codes, and tracked campaigns directly from your systems.
Sync resources
Fetch domains, folders, pixels, or organization metadata for your integrations.
Stream analytics
Export click events for BI, attribution, and marketing dashboards.