Create a label
A named, colored tag of one inbox: at most 100, names unique regardless of case. A color is picked when omitted.
POST
/inboxes/{inbox_id}/labels授权
AuthorizationBearer 令牌 · header必填A BillionSend API key (bs_…).
路径参数
inbox_idstring必填The inbox ID or its email address, such as support@example.com
请求体
必填application/jsonnamestring必填1-64 characters, unique in the inbox regardless of case
colorstring#RRGGBB; a color is picked when omitted
响应
201
Label created
idstring<uuid>必填namestring必填colorstring必填Uppercase #RRGGBB
created_atstring必填objectstring必填允许值:
inbox_label401
Missing, malformed, unknown or revoked API key
statusCodenumber必填namestring必填messagestring必填404
Not found
statusCodenumber必填namestring必填messagestring必填422
Validation error, a duplicate name or the 100-label cap
statusCodenumber必填namestring必填messagestring必填429
Over the rate limit (rate_limit_exceeded, with Retry-After)
statusCodenumber必填namestring必填messagestring必填