> For the complete documentation index, see [llms.txt](https://codemash.gitbook.io/codemash/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://codemash.gitbook.io/codemash/cloud/sms/integrations/test.md).

# Test an integration

Test an SMS integration — Norbix checks the provider account and sends a test SMS to a number you type.

**Where:** SMS → Integrations → an integration → **Test integration** · `/projects/<project>/sms/integrations/<integrationId>/edit`

## Before you start

* The integration is saved — see [Twilio](/codemash/cloud/sms/integrations/providers/twilio.md). A new integration must be saved before it can be tested.
* A phone you can read, in E.164 format. Through Twilio a passed test sends a real, paid SMS to it.
* The [Fake SMS (Test Me)](/codemash/cloud/sms/integrations/providers/fake-sms.md) has no test panel: it is born **TESTED** and **CONFIRMED**. The six coming-soon providers refuse the test (`CM-ERRORS-SMS-005`, *Sending SMS through \<Provider> is not supported yet.*).

## Steps

1. Open **SMS → Integrations** and press the integration, here `Twilio (Acme support line)`.
2. At the bottom of the page, type the number under **Test SMS Recipient** (*We'll send a test SMS to the phone number defined below.*), e.g. `+37060000001`. A wrong number shows *Please enter a valid phone number in E.164 format (e.g. +15551234567).*
3. Press **Test integration**. While it runs the button says **Testing...**.

   <figure><img src="https://712692422-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHy372bqsaex2cqS3ikhL%2Fuploads%2Fgit-blob-4e999823de90a15cd24ed8caadc427737363e05e%2Ftest-1.png?alt=media" alt="The lower part of the Twilio integration page: Integration Name, Cancel and Save, and the test panel with Test SMS Recipient +37060000001 and the Test integration button"><figcaption><p>The test panel with a recipient.</p></figcaption></figure>

## Result

The panel shows **Test passed** or **Test failed**, the time of the run, and one line per check. For Twilio the first check, **CheckCredentials**, signs in to Twilio with the Account SID and Auth Token (no SMS, no cost); only when it passes is the test SMS sent. The badge becomes **TESTED** or **TEST FAILED**.

<figure><img src="https://712692422-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHy372bqsaex2cqS3ikhL%2Fuploads%2Fgit-blob-68a45e99f05e623cb89ddd1cd70e9cd97cec6dc6%2Ftest-2.png?alt=media" alt="Test failed, Last run 10/6/2026, with CheckCredentials Failed: Twilio refused the SMS request with HTTP 401 Unauthorized. Authentication Error - invalid username (Twilio error 20003)"><figcaption><p>A failed test: the Account SID in this example is made up, so Twilio refuses the sign-in.</p></figcaption></figure>

When the test SMS arrives, press **I received it** in the **Confirm you received the message** box: the badge turns **CONFIRMED**. A new test or a save of the form clears the confirmation. Common Twilio errors: `20003` (wrong Account SID or Auth Token), `21211` (the number is not valid, or a trial account sends only to verified numbers).

## Change or remove it later

* Fix the fields, type the Auth Token again, press **Save**, and test again.
* [Set it as default](/codemash/cloud/sms/integrations/set-default.md) once it passes, or [disable or delete it](/codemash/cloud/sms/integrations/disable.md).

## Do it from code

Without `to`, the test only checks the account and sends nothing.

```ts
const result = await norbix.hub.notifications.testSmsIntegration({
  integrationId: 'int_6owP11oF9ZZAt9szkqy99S', // Test Me (Fake)
  to: '+37060000001',
});
console.log(result.items); // [ { operation: 'SendSms', result: 'OK' } ]
```

```sh
norbix hub notifications sms integration test --integrationId int_6owP11oF9ZZAt9szkqy99S --to +37060000001
```

The client setup is on the [SMS page](/codemash/cloud/sms.md#use-it-from-code). API: [Test Sms Integration](/codemash/api-reference/notifications/sms/test-sms-integration.md) · [Confirm Sms Integration Human Delivery](/codemash/api-reference/notifications/sms/confirm-sms-integration-human-delivery.md)
