Quickstart

This guide will get you all set up and ready to use the Support Station API. We'll cover how to get your API key and how to make your first API request to create a support ticket.

Get your API key

API keys are organization-scoped and provide access to your Support Station data. To create an API key:

  1. Log in to your Support Station dashboard
  2. Navigate to Settings > API Keys
  3. Click Create API Key
  4. Select the scopes you need (e.g., tickets:write, customers:read)
  5. Copy and securely store your API key

Making your first API request

After creating your API key, you're ready to make your first call to the Support Station API. Below is an example of how to create a new support ticket using cURL.

POST
/api/v1/tickets
curl -X POST https://api.supportstation.io/api/v1/tickets \
  -H "Authorization: Bearer sk_live_your_api_key_here" \
  -H "Content-Type: application/json" \
  -d '{
    "subject": "Help with login",
    "message": "I am unable to log into my account. I have tried resetting my password but it is not working.",
    "priority": "MEDIUM",
    "customer": {
      "email": "john@example.com",
      "name": "John Doe"
    }
  }'

This request creates a new ticket with an initial message. If the customer doesn't exist, they will be created automatically.

Response

{
  "data": {
    "id": "550e8400-e29b-41d4-a716-446655440000",
    "ticket_number": 42,
    "subject": "Help with login",
    "status": "OPEN",
    "priority": "MEDIUM",
    "channel": "API",
    "customer": {
      "id": "customer-uuid",
      "email": "john@example.com",
      "name": "John Doe"
    },
    "messages": [
      {
        "id": "message-uuid",
        "content": "I am unable to log into my account...",
        "type": "INBOUND",
        "created_at": "2025-01-15T10:30:00.000Z"
      }
    ],
    "created_at": "2025-01-15T10:30:00.000Z",
    "updated_at": "2025-01-15T10:30:00.000Z"
  }
}

What's next?

Great, you're now set up with an API key and have made your first request to the API. Here are a few links that might be handy as you venture further into the Support Station API:

Was this page helpful?