# Sync 10DLC campaign status

> Sync the campaign status with the registration provider. Use this to check for approval updates after submission.

`POST https://api.zavu.dev/v1/10dlc/campaigns/{campaignId}/sync`

Sync the campaign status with the registration provider. Use this to check for approval updates after submission.

## Parameters

- `campaignId` (path, string, required): 10DLC campaign ID.

## Responses

### 200

Campaign status synced.

- `campaign` (object, required)
  - `id` (string, required)
  - `brandId` (string, required): ID of the brand this campaign belongs to.
  - `name` (string, required)
  - `useCase` (string, required): Campaign use case type.
  - `subUseCases` (string[], nullable)
  - `description` (string, required): Description of the messaging campaign.
  - `sampleMessages` (string[], required): Sample messages representative of campaign content.
  - `subscriberOptIn` (boolean, required)
  - `subscriberOptOut` (boolean, required)
  - `subscriberHelp` (boolean, required)
  - `numberPooling` (boolean, required)
  - `directLending` (boolean, required)
  - `embeddedLink` (boolean, required)
  - `embeddedPhone` (boolean, required)
  - `affiliateMarketing` (boolean, required)
  - `ageGated` (boolean, required)
  - `messageFlow` (string, nullable)
  - `helpMessage` (string, nullable)
  - `optInKeywords` (string[], nullable)
  - `optOutKeywords` (string[], nullable)
  - `status` (string, required): Status of a 10DLC campaign registration. - `draft`: created, not yet submitted. - `pending`: submitted, awaiting the carriers. Re-read from the carrier every 30 minutes, so it moves on its own. - `approved`: SMS to +1 numbers can go out from numbers assigned to it. The monthly fee is charged while it is approved. - `rejected`: refused by the carriers. The one-time registration fee is refunded. - `failed`: the registration did not reach the carriers. The fee is refunded. - `expired`: was approved and has lapsed. One of: `draft`, `pending`, `approved`, `rejected`, `expired`, `failed`.
  - `dailyLimit` (integer, nullable): Daily message limit based on brand trust score.
  - `failureReason` (string, nullable)
  - `registrationCostCents` (integer, nullable): One-time registration cost in cents.
  - `monthlyFeeCents` (integer, nullable): Recurring monthly fee in cents.
  - `submittedAt` (string<date-time>, nullable)
  - `approvedAt` (string<date-time>, nullable)
  - `createdAt` (string<date-time>, required)
  - `updatedAt` (string<date-time>, required)

### 400

Campaign has not been submitted yet.

- `code` (string, required)
- `message` (string, required)
- `details` (object)

### 401

Unauthorized.

- `code` (string, required)
- `message` (string, required)
- `details` (object)

### 404

Campaign not found.

- `code` (string, required)
- `message` (string, required)
- `details` (object)

## Example

```bash
curl -X POST "https://api.zavu.dev/v1/10dlc/campaigns/campaign_abc123/sync" \
  -H "Authorization: Bearer $ZAVUDEV_API_KEY"
```

```typescript
import Zavudev from "@zavudev/sdk";

const zavu = new Zavudev({ apiKey: process.env.ZAVUDEV_API_KEY });

const result = await zavu.number10dlc.campaigns.syncStatus("campaign_abc123");

console.log(result);
```
