# 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

<!-- --8<-- [start:body] -->

### TEXT

```typescript title="Content type TEXT" linenums="1"
g.res.contentType = T.EContentType.TEXT;
return "Hello world from the API Maker.";
```

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

<!-- --8<-- [end:body] -->

## Related

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