# Request Body Example

> See how to access the request payload using g.req.body in API Maker with a clear and practical example.

Source: https://docs.apimaker.dev/v1/examples/req/body/reqBody.html

### Request body

To get the value of request body, use `g.req.body`.

```ts
const req_body = g.req.body;
```

## 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)
