Get started
Quickstart
Authenticate with an API key and create your first ticket. This example uses the official SDK and takes about a minute.
1. Install
$ npm install @1click/sdk
2. Create a ticket
Grab an API key from Settings → Developers, then make your first call.
import { OneClick } from '@1click/sdk';
const client = new OneClick({ apiKey: process.env.ONECLICK_KEY });
// Create a ticket on the default board
const ticket = await client.tickets.create({
title: 'Checkout button misaligned on mobile',
priority: 'high',
labels: ['bug', 'ui'],
});
console.log(ticket.id); // → tkt_9f3a21
3. What's next