# Plain Text Response Example

> Learn how to return a simple plain-text response with g.res.contentType = TEXT in API Maker.

Source: https://docs.apimaker.dev/v1/examples/res/contentType/TEXT.html

### TEXT

**Content type TEXT**

```typescript
g.res.contentType = T.EContentType.TEXT;
return "Hello world from the API Maker.";
```

Response
```text
Hello world from the API Maker.
```

## Related

- [The global object g](https://docs.apimaker.dev/v1/docs/pre-defined-terms/global-object-g.html) · [Custom APIs](https://docs.apimaker.dev/v1/docs/apis-all/custom-apis/user-created-custom-api.html)
