const paste = await createPaste({
  content: snippet,
  language: "typescript",
  expiresIn: "7d",
  isPublic: false,
});
// share code. instantly.
export async function getPaste(
  id: string
): Promise<Paste> {
  return api.get(`/pastes/${id}`);
}
curl -X POST /api/v1/pastes \\
  -H "Authorization: Bearer $KEY" \\
  -H "Content-Type: application/json" \\
  -d '{"content":"...","language":"bash"}'
auth.ts

JWTF Pastes

// share code. instantly.