API Documentation

Create, manage, and analyze short links programmatically with the PocoLink REST API.

Base URL: api.pocolink.com/v1Format: JSONAuth: Bearer Token

Authentication

All API requests require a Bearer token in the Authorization header. Retrieve your API key from the Account Settings section of your dashboard.

Authorization: Bearer pl_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxx

Keep your API key secret. Do not commit it to version control or expose it in client-side JavaScript. If your key is compromised, you can regenerate it from the dashboard — the old key will be immediately invalidated.

Rate Limiting

API requests are limited to 1,000 requests per hour per API key. The following headers are included in every response:

X-RateLimit-Limit: 1000
X-RateLimit-Remaining: 847
X-RateLimit-Reset: 1724151600   # Unix timestamp when the window resets

Exceeding the rate limit returns 429 Too Many Requests. Implement exponential backoff in your client and monitor X-RateLimit-Remaining to avoid hitting the limit.

Error Codes

All error responses follow this structure: { "success": false, "error": { "code": "...", "message": "..." } }

HTTP StatusError CodeMeaning
400INVALID_URLThe provided URL is malformed or missing the protocol.
401UNAUTHORIZEDMissing or invalid API key.
403FORBIDDENYou don't have permission to access this resource.
404NOT_FOUNDThe link ID does not exist or belongs to a different account.
409SLUG_TAKENThe requested custom slug is already in use.
422VALIDATION_ERRORA request parameter failed validation (see message for details).
429RATE_LIMITEDYou have exceeded the hourly request limit.
500INTERNAL_ERRORUnexpected server error. Retry after a short delay.

Need Help with the API?

If you're running into issues or need functionality not covered here, email our developer support or open a ticket through the contact form.