# Support tickets

> Submit a support request and follow its replies.

Ask the PostShiba team for help. A ticket is filed for the token's team as the token's user, and replies come back on the ticket and by email. category is one of sending, domains, receiving, billing, account, other. A team can have 20 open tickets.

## GET /api/v1/teams/:obfuscated_team_id/support_tickets

List the team's open support tickets, newest activity first.

- `all`: true to include resolved tickets

```bash request.sh
curl -sS -X GET \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  https://app.postshiba.com/api/v1/teams/KjkAJW/support_tickets
```

```json response.json
[
  {
    "id": "SuPtKt",
    "subject": "Forwarded mail bounces with SPF fail",
    "category": "receiving",
    "status": "open",
    "created_at": "2026-11-27T09:00:00.000Z",
    "updated_at": "2026-11-27T09:00:00.000Z",
    "resolved_at": null
  }
]
```

## GET /api/v1/support_tickets/:id

Get one support ticket with its messages.

- `id`: Public support ticket id

```bash request.sh
curl -sS -X GET \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  https://app.postshiba.com/api/v1/support_tickets/:id
```

```json response.json
{
  "id": "SuPtKt",
  "subject": "Forwarded mail bounces with SPF fail",
  "category": "receiving",
  "status": "open",
  "created_at": "2026-11-27T09:00:00.000Z",
  "updated_at": "2026-11-27T09:00:00.000Z",
  "resolved_at": null,
  "messages": [
    {
      "from": "customer",
      "body": "Mail forwarded from our Google Workspace support address bounces with 550 5.7.1 SPF fail.",
      "created_at": "2026-11-27T09:00:00.000Z"
    }
  ]
}
```

## POST /api/v1/teams/:obfuscated_team_id/support_tickets

Submit a support request to the PostShiba team.

- `subject`: Short summary, up to 80 characters
- `category`: sending, domains, receiving, billing, account, other
- `body`: What happened, what you expected, and any message ids, domains, or bounce text

```bash request.sh
curl -sS -X POST \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{"support_ticket":{"subject":"Forwarded mail bounces with SPF fail","category":"receiving","body":"Mail forwarded from our Google Workspace support address bounces with 550 5.7.1 SPF fail."}}' \
  https://app.postshiba.com/api/v1/teams/KjkAJW/support_tickets
```

```json response.json
{
  "id": "SuPtKt",
  "subject": "Forwarded mail bounces with SPF fail",
  "category": "receiving",
  "status": "open",
  "created_at": "2026-11-27T09:00:00.000Z",
  "updated_at": "2026-11-27T09:00:00.000Z",
  "resolved_at": null,
  "messages": [
    {
      "from": "customer",
      "body": "Mail forwarded from our Google Workspace support address bounces with 550 5.7.1 SPF fail.",
      "created_at": "2026-11-27T09:00:00.000Z"
    }
  ]
}
```

## POST /api/v1/support_tickets/:id/reply

Add a reply to a support ticket. A resolved ticket reopens.

- `id`: Public support ticket id
- `body`: The reply

```bash request.sh
curl -sS -X POST \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{"support_ticket_message":{"body":"It still bounces for mail from example.com."}}' \
  https://app.postshiba.com/api/v1/support_tickets/:id/reply
```

```json response.json
{
  "id": "SuPtKt",
  "subject": "Forwarded mail bounces with SPF fail",
  "category": "receiving",
  "status": "open",
  "created_at": "2026-11-27T09:00:00.000Z",
  "updated_at": "2026-11-27T09:00:00.000Z",
  "resolved_at": null,
  "messages": [
    {
      "from": "customer",
      "body": "Mail forwarded from our Google Workspace support address bounces with 550 5.7.1 SPF fail.",
      "created_at": "2026-11-27T09:00:00.000Z"
    }
  ]
}
```
