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

  1. Sign up and obtain your API key from the dashboard.
  2. Include the API key in your requests using the Authorization header.
  3. Use the base URL: https://api.linktoit.com/v1.

Endpoints

EndpointMethodDescription
/linksGETRetrieve all links.
/linksPOSTCreate a new link.
/links/:idDELETEDelete 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));