API Documentation
Everything you need to know to integrate with LinkToIt API.
Overview
The LinkToIt API allows you to seamlessly manage and retrieve links. With endpoints for creating, updating, and deleting links, you can easily integrate this functionality into your application.
Getting Started
- Sign up and obtain your API key from the dashboard.
- Include the API key in your requests using the
Authorizationheader. - Use the base URL:
https://api.linktoit.com/v1.
Endpoints
| Endpoint | Method | Description |
|---|---|---|
| /links | GET | Retrieve all links. |
| /links | POST | Create a new link. |
| /links/:id | DELETE | Delete a link by ID. |
Code Examples
// Example: Fetch all links
fetch('https://api.linktoit.com/v1/links', {
headers: { Authorization: 'Bearer YOUR_API_KEY' },
})
.then(response => response.json())
.then(data => console.log(data));