# How to use plain text response decoder

**URL:** <https://forum.alumio.com/t/how-to-use-plain-text-response-decoder/759>\
**Category:** Guides / How To\
**Created:** [October 5, 2023, 1:42pm UTC](https://forum.alumio.com/t/how-to-use-plain-text-response-decoder/759 "2023-10-05T13:42:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![o.plokha](https://forum.alumio.com/user_avatar/forum.alumio.com/o.plokha/32/337_2.png) [@o.plokha](https://forum.alumio.com/u/o.plokha)\
**Post date:** [October 5, 2023, 1:42pm UTC](https://forum.alumio.com/t/how-to-use-plain-text-response-decoder/759/1 "2023-10-05T13:42:42Z")

</div>

### Table of contents

- Introduction
- Plain text response decoder

### Introduction

Sometimes when trying to connect to an external API through Alumio, you may run into the issue. For example, when you make a GET request to the external API, the system returns a proper response but the body response can be empty.

This was caused by an inability to differentiate a user token as plain text in the response body. Therefore, here we are to provide you with more details on how you can solve the corresponding issue.

### Plain text response decoder

There are two common cases which can help you solve the issue when requesting the external API to return token as the plain text. Let’s have a look at them both!

**Case 1: Create a Route that uses an HTTP Subscriber.**

1. Use a URL that returns plain text.
2. Configure the “Plain text” response decoder.
3. Run the Incoming configuration.
4. Plain text is added as entity data in the configured key.  
 ![image](https://alumio-forum.s3.dualstack.eu-central-1.amazonaws.com/uploads/original/2X/f/f310dea93f7c1aeb2c991153339ecf3cf515d50c.png)

**Case 2: Create a Transformer with the Value mapper inside.**

1. Add a Data transformer, then select Value mapper.

- Use the pattern accessor. Configure a pattern.
- Add a Deserialize mapper.
  - Configure the plain text deserializer.

1. Add test data in the Transformer tester.
2. Run the Transformer tester.
3. Plain text is added as entity data in the configured key.  
 ![image](https://alumio-forum.s3.dualstack.eu-central-1.amazonaws.com/uploads/original/2X/b/b87eaf149b450222bfeda3723b02a24c95b899e3.png)
