# Problem using API v2 Access Token (Unauthorized / JWT error)

**URL:** <https://forum.manager.io/t/problem-using-api-v2-access-token-unauthorized-jwt-error/64768>\
**Category:** Uncategorized\
**Created:** [August 23, 2025, 7:39pm UTC](https://forum.manager.io/t/problem-using-api-v2-access-token-unauthorized-jwt-error/64768 "2025-08-23T19:39:32Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hazem](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.manager.io/hazem/32/53136_2.png) [@Hazem](https://forum.manager.io/u/Hazem)\
**Post date:** [August 23, 2025, 7:39pm UTC](https://forum.manager.io/t/problem-using-api-v2-access-token-unauthorized-jwt-error/64768/1 "2025-08-23T19:39:32Z")

</div>

Hello,

I’m trying to integrate [Manager.io](http://Manager.io) Cloud with Zapier / Postman, but I keep getting an error when using the Access Token.

Steps I did:

1. Generated an Access Token from Settings → Access Tokens.

2. It shows the endpoint as https://.manager.io/api2 and a Secret (Base64 string).

3. In Postman, I tested with:

GET https://.manager.io/api2/businesses  
Authorization: Bearer  
Content-Type: application/json

But the response is always:

`{`  
`“error”: “Unauthorized”`  
`}`

Sometimes I also get:

`JWT is not well formed`

So it seems Manager is expecting a JWT token (xxxx.yyyy.zzzz format), but the Access Token generated in Cloud is a Base64 string instead.

My questions are:

Does the Cloud edition (trial or paid) support API v2?

Is there a difference between Access Tokens for Cloud vs Server edition?

Do I need to request API v2 activation for my Cloud account, or is this feature only available on Server edition?

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![Mabaega](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.manager.io/mabaega/32/47471_2.png) [@Mabaega](https://forum.manager.io/u/Mabaega)\
**Post date:** [August 23, 2025, 11:41pm UTC](https://forum.manager.io/t/problem-using-api-v2-access-token-unauthorized-jwt-error/64768/2 "2025-08-23T23:41:01Z")

</div>

> [@Hazem](#):
>
> Does the Cloud edition (trial or paid) support API v2?
> 
> Is there a difference between Access Tokens for Cloud vs Server edition?
> 
> Do I need to request API v2 activation for my Cloud account, or is this feature only available on Server edition?

All editions of Manager support the API, including **/api** , **/api2** and **/api3**.

Manager’s Api2 does not use the standard **Authorization** header.  
Instead, it requires an **X-API-KEY** header, where the value is the **AccessToken** generated within Manager.

```auto
curl -X 'GET' \
  'http://127.0.0.1:59883/api2/access-tokens' \
  -H 'accept: application/json' \
  -H 'X-API-KEY: ChFNeUludm9pY2Ug,,,,,,,,,n04uwbnsYU8Ro4b1F1E64iA='

```

```auto
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, "http://127.0.0.1:59883/api2/access-tokens");
request.Headers.Add("X-API-KEY", "ChFNeUludm9pY2Ug,,,,,,,,,n04uwbnsYU8Ro4b1F1E64iA=");
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());

```

 ![image](https://us1.discourse-cdn.com/flex019/uploads/manager1/original/3X/f/2/f2374bf38ac45c2e571e6d039324ea9d11c2a95b.png)

---

<div class="post-metadata">

**Author:** ![Hazem](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.manager.io/hazem/32/53136_2.png) [@Hazem](https://forum.manager.io/u/Hazem)\
**Post date:** [August 24, 2025, 9:53am UTC](https://forum.manager.io/t/problem-using-api-v2-access-token-unauthorized-jwt-error/64768/3 "2025-08-24T09:53:19Z")

</div>

Hello @Mabaega  
and super thank you for your kind support.

i have another thing

When I try to create a new **Inventory Item** using a `POST` request,  
I get a response with `200 OK` and a JSON object,  
but the new item does not appear in my business data.  
In the History, I only see “Tabs created” without actual product details being saved.

Here is an example of the request I tried in Postman:

```auto
POST https://{mybusiness}.manager.io/api2/inventory-items

Headers:
  X-API-KEY: <my token>
  Content-Type: application/json

Body (raw JSON):
{
  "Name": "API Test Item 001",
  "Code": "SKU-001",
  "SalesPrice": 150,
  "PurchasePrice": 100
}

```

Questions:

1. What is the **correct endpoint** to create a new Inventory Item?

2. What are the **required fields** and their exact names (e.g. `"Name"`, `"Code"`, `"SalesPrice"`, `"PurchasePrice"`, etc.)?

3. Is there any example in the documentation for posting new items to `inventory-items`?

I want to confirm the correct structure, because currently the API shows success (201/200) but no actual item is created.

Thank you for your support.

---

<div class="post-metadata">

**Author:** ![Mabaega](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.manager.io/mabaega/32/47471_2.png) [@Mabaega](https://forum.manager.io/u/Mabaega)\
**Post date:** [August 24, 2025, 12:51pm UTC](https://forum.manager.io/t/problem-using-api-v2-access-token-unauthorized-jwt-error/64768/4 "2025-08-24T12:51:52Z")

</div>

Go to the **SwaggerNext Editor** : [https://editor-next.swagger.io/](https://editor-next.swagger.io/).  
Then import the **api2** URL of your business data:

```auto
https://{subdomain}.manager.io/api2

```

You will see all the endpoint paths provided by Manager.  
Generate an access token in Manager and use it in Swagger as authorizations.

To create a new **Inventory Item** :

1. First, manually create an Inventory Item in Manager.
2. Save it, then open (edit) the item you just created.
3. At the top-right of the form panel, you will find the **UUID** of the item.

Next, test it in Swagger:

- Use the path **GET /inventory-item-form/{key}** with that UUID.
- You will receive the JSON data of the item.

You can then reuse that JSON as the **request body (payload)** when creating a new item using the path: **POST /inventory-item-form**.

---

<div class="post-metadata">

**Author:** ![Hazem](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.manager.io/hazem/32/53136_2.png) [@Hazem](https://forum.manager.io/u/Hazem)\
**Post date:** [August 24, 2025, 3:36pm UTC](https://forum.manager.io/t/problem-using-api-v2-access-token-unauthorized-jwt-error/64768/5 "2025-08-24T15:36:13Z")

</div>

> [@Mabaega](#):
>
> inventory-item-form

thank you for the kind support !

---

<div class="post-metadata">

**Author:** ![Ealfardan](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.manager.io/ealfardan/32/63166_2.png) [@Ealfardan](https://forum.manager.io/u/Ealfardan)\
**Post date:** [July 5, 2026, 7:58pm UTC](https://forum.manager.io/t/problem-using-api-v2-access-token-unauthorized-jwt-error/64768/6 "2026-07-05T19:58:55Z")

</div>

Closed on July 5, 2026, 7:58pm UTC

Solved topics
