Get status of a batch job or list batches via Sinch Batch API
Scanned 9/6/2026
Install to Claude Code
npx -y skills add sinch/sinch-plugins --skill sinch-api-batch-status --agent claude-codeInstalls into .claude/skills of the current project.
Are you the author of Sinch Api Batch Status?
Add the live security badge to your README — it updates automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/sinch-sinch-api-batch-status)More formats (shields.io, HTML) on the badges page.
---
name: sinch-api-batch-status
description: Get status of a batch job or list batches via Sinch Batch API
---
# Batch Job Status
Get the status of a specific batch job or list batches matching metadata using the Sinch Conversation Batch API.
**IMPORTANT: Execute this command directly. Do NOT generate script files. Perform the API call immediately.**
## Input
- `--batch-id` / `-b`: Batch ID to get status for - optional (if omitted, list batches)
- `--metadata-key` / `-k`: Metadata key filter when listing - optional
- `--metadata-value` / `-v`: Metadata value filter when listing - optional
- `--format` / `-f`: Output format (table or json) - optional, default table
Arguments: $ARGUMENTS
## Instructions
**Execute these steps directly - do not write code or scripts:**
0. If $ARGUMENTS empty: ask "Do you have a batch ID to check, or list recent batches?" and get batch-id or list preference. Otherwise parse.
1. Validate: optional --batch-id, --metadata-key, --metadata-value, --format (table|json).
2. Get CONVERSATION_* env vars. Batch API base: https://{region}.conversationbatch.api.sinch.com. If missing, report "Sinch API is not configured."
3. If --batch-id provided: GET https://{region}.conversationbatch.api.sinch.com/v1/projects/{projectId}/messages/{batch_id} with OAuth2. Return batch status, counts (sent, delivered, failed), etc.
4. If listing: GET https://{region}.conversationbatch.api.sinch.com/v1/projects/{projectId}/messages?metadataKey=X&metadataValue=Y with OAuth2. Display list of batches (id, status, created, recipient count).
5. Format output as table or JSON. On success display "✅ Batch status" or "✅ Batches listed". Handle 404, 401 with clear messages.
6. Handle all errors gracefully.
## Examples
```
/sinch-api-batch-status --batch-id=BATCH_ID
/sinch-api-batch-status
/sinch-api-batch-status --metadata-key=campaign --metadata-value=welcome --format=json
```
## API Reference
- **Base URL**: https://{region}.conversationbatch.api.sinch.com
- **Get batch**: GET /v1/projects/{project_id}/messages/{batch_id}
- **List batches**: GET /v1/projects/{project_id}/messages?metadataKey=&metadataValue=
- **Documentation**: https://developers.sinch.com/docs/conversation/batch/
Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.
No comments yet. Be the first to comment!