braze-specification
Version:
Braze API specification.
49 lines (31 loc) • 1.7 kB
Markdown
# braze-specification
[](https://nodei.co/npm/braze-specification/)
[](https://www.npmjs.com/package/braze-specification)
[](https://github.com/braze-community/braze-specification/actions/workflows/build.yml)
[](https://github.com/braze-community/braze-specification/actions/workflows/lint.yml)
Braze API specification:
- [OpenAPI spec](https://github.com/braze-community/braze-specification/blob/master/openapi/spec.json)
- [Postman collection](https://github.com/braze-community/braze-specification/blob/master/postman/collection.json)
See the original [Postman collection](https://documenter.getpostman.com/view/4689407/SVYrsdsG).
## Installation
[NPM](https://www.npmjs.com/package/braze-specification):
```sh
npm install braze-specification
```
[Yarn](https://yarnpkg.com/package/braze-specification):
```sh
yarn add braze-specification
```
## Usage
Require OpenAPI spec and Postman collection with CommonJS:
```ts
const spec = require('braze-specification/openapi/spec.json');
const collection = require('braze-specification/postman/collection.json');
```
Or import OpenAPI spec and Postman collection with ES Modules:
```ts
import spec from 'braze-specification/openapi/spec.json';
import collection from 'braze-specification/postman/collection.json';
```
## License
[MIT](https://github.com/braze-community/braze-specification/blob/master/LICENSE)