Skip to content
Back to skills

Sinch Api Batch Status

ASecurity

Get status of a batch job or list batches via Sinch Batch API

  • 6 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 6, 2026
ai-agentsapidocumentation

Works with

  • api

Security analysis

A100/100

Scanned November 9, 2026

npx -y skills add sinch/sinch-plugins --skill sinch-api-batch-status --agent claude-code

Installs 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 with every re-scan.

Security grade badge for Sinch Api Batch Status
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/sinch-sinch-api-batch-status/badge)](https://www.skillsdirectory.com/skills/sinch-sinch-api-batch-status)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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 PROJECT_ID, KEY_ID, KEY_SECRET, CONVERSATION_REGION and CONVERSATION_APP_ID env variables. 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/

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.