# @ciptex/content-sdk

> @ciptex/content-sdk

Latest version **1.3.16** (published 2026-11-19) · 0 weekly downloads

## Install

```sh
npm install @ciptex/content-sdk
pnpm add @ciptex/content-sdk
yarn add @ciptex/content-sdk
bun add @ciptex/content-sdk
```

## Health

**Score 65/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; recently updated; high maintenance score.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 1.3.16 |
| Published | 2026-11-19 |
| First published | 2022-03-03 |
| Weekly downloads | 0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 2 |
| Unpacked size | 106.7 KB |
| Known vulnerabilities | 0 (+24 in 1 direct dependencies) |
| Install scripts | no |
| Author | Matthew C Duggan |
| Maintainers | adamneeld, jamesturner27, matthew.duggan, sinataavon, sonyarouje, tomseldon_ciptex, shaunhalliday, danielgarner365, j-wright1, abhishek_p_s_630, raishum_singh, tobyguest |

## Links

- npm: https://www.npmjs.com/package/@ciptex/content-sdk
- Homepage: https://developer.ciptex.com/docs/api/content-api
- npm.io page: https://npm.io/package/@ciptex/content-sdk

## Dependencies (2)

- [axios](https://npm.io/package/axios.md) ^0.27.2
- [form-data](https://npm.io/package/form-data.md) ^4.0.0

## Recent versions

- 1.3.16 (latest) — 2026-11-19
- 1.3.15 — 2024-09-09
- 1.3.14 — 2024-09-09
- 1.3.13 — 2024-09-09
- 1.3.12 — 2024-09-09
- 1.3.11 — 2024-09-09
- 1.3.10 — 2024-08-14
- 1.3.9 — 2024-08-14
- 1.3.8 — 2024-08-12
- 1.3.7 — 2024-07-29
- 1.3.6 — 2024-07-29
- 1.3.5 — 2024-05-21
- 1.3.4 — 2024-05-21
- 1.3.3 — 2024-05-20
- 1.3.2 — 2024-05-20
- … 19 more at https://npm.io/package/@ciptex/content-sdk/versions

## README

<!---
FILE AUTO GENERATED BY CIPTEX-API-CODEGEN
-->

# Race Content SDK

The  [content-api](https://www.npmjs.com/package/@ciptex/content-sdk)  helper library lets you write Node.js code to make HTTP requests to the Ciptex Race Content API.

> Do not use Basic Authentication in a front-end application. Doing so can expose your Twilio credentials to end-users as part of the bundled HTML/JavaScript sent to their browser.

## Installation

The easiest way to install **content-sdk** is from [NPM](https://npmjs.org/). You can run the command below from your project directory to install the library:

```bash
npm install --save @ciptex/content-sdk@latest
```

Then in your code:

```typescript
import { ContentClient } from "@ciptex/content-sdk"
```



## Testing your installation

Try Listing Configuration like this:

```typescript
import { ContentClient } from "@ciptex/content-sdk"
const accountSid = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"; // Your Account SID from www.twilio.com/console
const authToken = "your_auth_token"; // Your Auth Token from www.twilio.com/console
const client = new ContentClient({ accountSid, authToken });

const main = async () => {
	try {
    // LIST EXAMPLE HERE
	}
	catch (error) {
		console.error(error);
	}
}  

main()  
```

<br />

> It's okay to hardcode your credentials when testing locally, but you should use environment variables to keep them secret before committing any code or deploying to production. Check out **[How to Set Environment Variables](https://www.twilio.com/blog/2017/01/how-to-set-environment-variables.html)** for more information.

## Using This Library

### Authenticate Client

```typescript
const accountSid = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
const authToken = "your_auth_token";
const client = new ContentClient({ accountSid, authToken });
```

### Create A New Record

```typescript
import { ContentClient } from "@ciptex/content-sdk"
const accountSid = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
const authToken = "your_auth_token";
const client = new ContentClient({ accountSid, authToken });

const main = async () => {
	try {
    //CREATE EXAMPLE HERE
	}
	catch (error) {
		console.error(error);
	}
}  

main()  
```

### Get Existing Record

```typescript
import { ContentClient } from "@ciptex/content-sdk"
const accountSid = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
const authToken = "your_auth_token";
const client = new ContentClient({ accountSid, authToken });

const main = async () => {
	try {
    //GET EXAMPLE HERE
	}
	catch (error) {
		console.error(error);
	}
}  

main()  
```

## Handling Exceptions

If the Content API returns a 400 or a 500 level HTTP response, the  **content-sdk**  library will throw an error which can be [caught](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/catch). 400-level errors are  [normal during API operation](https://www.twilio.com/docs/api/rest/request#get-responses)  ("Invalid number", "Cannot deliver SMS to that number", for example) and should be handled appropriately.

## More Documentation
Once you're up and running with the **content-sdk** library, you'll find code samples using the latest version in our [REST API docs](https://developer.ciptex.com/docs/api/content-api)

---
_Source: https://npm.io/package/@ciptex/content-sdk · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
