| Method | Path | Auth |
|---|---|---|
| POST | https://crm.nsmlonline.com/shortURLApi/api/auth/register | No |
| POST | https://crm.nsmlonline.com/shortURLApi/api/auth/login | No |
| GET | https://crm.nsmlonline.com/shortURLApi/api/links | Bearer token |
| POST | https://crm.nsmlonline.com/shortURLApi/api/links | Bearer token |
| GET | https://crm.nsmlonline.com/shortURLApi/api/links/{id} | Bearer token |
| PUT | https://crm.nsmlonline.com/shortURLApi/api/links/{id} | Bearer token |
| DELETE | https://crm.nsmlonline.com/shortURLApi/api/links/{id} | Bearer token |
| GET | https://crm.nsmlonline.com/shortURLApi/api/links/{id}/clicks | Bearer token |
API
Other apps use the same email and password as this dashboard. Log in to get a token, then send that token with each request. Interactive docs are at https://crm.nsmlonline.com/shortURLApi/swagger.
Create a link
curl -X POST https://crm.nsmlonline.com/shortURLApi/api/links \
-H "Authorization: Bearer TOKEN" \
-H "Content-Type: application/json" \
-d "{\"originalUrl\":\"https://example.com\",\"slug\":\"spring-sale\"}"