Get started with the NeetoDesk API in minutes. Make your first API call and create your first ticket. You should have your API key & subdomain ready with you.
Let’s create a ticket in your workspace using a POST request:
Copy
curl -X POST "https://{your-subdomain}.neetodesk.com/api/v1/public/tickets" \ -H 'X-Api-Key: your-api-key' \ -H 'Content-Type: application/json' \ -d '{ "email": "customer@example.com", "subject": "My first API ticket", "description": "This ticket was created using the NeetoDesk API!" }'
Replace your-subdomain with your workspace subdomain and your-api-key with your generated API key.
A successful response will look like this JSON format:
Copy
{ "notice_code": "ticket_created_successfully", "ticket": { "id": "56e11f80-ff33-4d5c-9855-539c39246570", "number": 42, "url": "https://{your-subdomain}.neetodesk.com/admin/tickets/42", "subject": "My first API ticket", "description": "This ticket was created using the NeetoDesk API!", "status": "open", "created_at": "2024-01-15T10:30:00Z" }}