---
title: "Create a label"
method: POST
path: "/v1/inboxes/{inbox_id}/labels"
tags: ["Inboxes"]
---

# Create a label

`POST /v1/inboxes/{inbox_id}/labels`

## Request

- Base URL: `https://smtpfa.st/api`
- URL: `https://smtpfa.st/api/v1/inboxes/{inbox_id}/labels`
- Auth: HTTP bearer

A named, colored tag on one inbox. Names are unique per inbox, ignoring case; an inbox holds up to 100 labels. color defaults to mauve. Organising mail needs only the inbound:read scope.

## Path parameters

- `inbox_id` string, required

## Request body

- object
  - `name` string, required
  - `color` 'cyan' | 'teal' | 'grass' | 'lime' | 'yellow' | 'orange' | 'iris' | 'plum' | 'crimson' | 'bronze' | 'mauve'

## Response `201`

The new label

- InboxLabel
  - `object` string
  - `id` string
  - `name` string
  - `color` 'cyan' | 'teal' | 'grass' | 'lime' | 'yellow' | 'orange' | 'iris' | 'plum' | 'crimson' | 'bronze' | 'mauve'
  - `created_at` string, date-time

## Other responses

- `400`: Bad request - check your payload
- `401`: Invalid or missing API key
- `403`: Forbidden - domain not verified or insufficient permissions
- `404`: Resource not found
- `409`: Conflict - the resource already exists or changed meanwhile
- `422`: The request is well formed but cannot be carried out in the current state, for example an unpublished template
- `429`: Rate limit exceeded - retry after the period indicated in the Retry-After header
- `500`: Internal server error

---

[API](https://skmtc.dev/smtpfa/apis/smtpfast-api.md) · [All operations](https://skmtc.dev/smtpfa/apis/smtpfast-api/llms.txt) · [OpenAPI document](https://skmtc.dev/smtpfa/apis/smtpfast-api/revisions/79dda742f53e?raw)
