10DLC Brand Registrations
List or create 10DLC (US A2P SMS) brand registrations using the Sinch 10DLC API. Brands must be registered before creating campaigns. Uses OAuth2. Base: https://us10dlc.api.sinch.com/v1.
IMPORTANT: Execute this command directly. Do NOT generate script files. Perform the API call immediately.
Input
--action/-a: list or create - optional, default list--display-name/-n: Brand display name (for create) - required if action=create--entity-type/-e: Entity type (PRIVATE, PUBLIC, etc.) - optional for create--format/-f: Output format (table or json) - optional
Arguments: $ARGUMENTS
Instructions
Execute these steps directly - do not write code or scripts:
If $ARGUMENTS empty: ask "List brands or create a new brand?" and get action, or for create get display name. Otherwise parse.
Validate: --action (list|create), for create require --display-name. Get CONVERSATION_PROJECT_ID, CONVERSATION_KEY_ID, CONVERSATION_KEY_SECRET. If missing, report "Sinch API is not configured."
If list: GET https://us10dlc.api.sinch.com/v1/projects/{projectId}/brandRegistrations with OAuth2. Display table or JSON.
If create: POST https://us10dlc.api.sinch.com/v1/projects/{projectId}/brandRegistrations with body (displayName, entityType if needed). Return brand ID. Handle 400 (validation).
"✅ Brands listed" or "✅ Brand created". Handle 401, 404. Handle all errors gracefully.
Examples
/sinch-api-10dlc-brands
/sinch-api-10dlc-brands --action=create --display-name="Acme Corp"
API Reference
- Base URL: https://us10dlc.api.sinch.com/v1
- List: GET /projects/{projectId}/brandRegistrations
- Create: POST /projects/{projectId}/brandRegistrations
- Documentation: https://developers.sinch.com/docs/10dlc/