Skip to content

General

The Slink API provides a RESTful interface for managing images, users, and application settings.

https://your-domain.com/api

Slink supports two authentication methods:

  • Access Token: Short-lived token (1 hour TTL) for API access
  • Refresh Token: Long-lived token for obtaining new token pair
  • Token Rotation: Automatic token refresh mechanism
  • API Keys: Long-lived authentication tokens
  • User-generated: Created and managed through user profile
  • Bearer token: Sent via Authorization: Bearer sk_... header

All API requests and responses use JSON:

Content-Type: application/json

HTTP status codes indicate the result of API requests:

  • 200 - Success
  • 201 - Created
  • 400 - Bad Request
  • 401 - Unauthorized
  • 403 - Forbidden
  • 404 - Not Found
  • 422 - Validation Error
  • 500 - Internal Server Error
  • Authentication - Login, logout, token management
  • Images - Upload, retrieve, update, and delete images
  • Users - User management and profile operations
  • Settings - Application configuration