# Xibo API "The resource owner.... "

**URL:** https://community.xibo.org.uk/t/xibo-api-the-resource-owner/8699
**Category:** Uncategorised Topics
**Created:** [February 7, 2017, 8:38am UTC](https://community.xibo.org.uk/t/xibo-api-the-resource-owner/8699 "2017-02-07T08:38:46Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![klausf11](https://community.xibo.org.uk/letter_avatar_proxy/v4/letter/k/94ad74/32.png) [@klausf11](https://community.xibo.org.uk/u/klausf11)
#### Post date: [February 7, 2017, 8:38am UTC](https://community.xibo.org.uk/t/xibo-api-the-resource-owner/8699/1 "2017-02-07T08:38:46Z")

</div>

Hello Forum!

I followed the manual for the API on this site. [1.8 API Introduction](https://community.xibo.org.uk/t/1-8-api-introduction/7702)

I did everything right because yesterday all worked fine. Today i restarted the server and wanted to create a layout but it response me:" The resource owner or authorization server denied the request.

The IP of my Server changed so i changed the IP in the “Manage Enviroments” section in the URL field. But i still get the error.

Do you have any ideas? I cant do any request by API.  
CMS: 1.8rc2  
API Programm: Postman

---

<div class="post-metadata">

### Author: ![Peter](https://community.xibo.org.uk/user_avatar/community.xibo.org.uk/peter/32/8154_2.png) [@Peter](https://community.xibo.org.uk/u/Peter)
#### Post date: [February 7, 2017, 8:40am UTC](https://community.xibo.org.uk/t/xibo-api-the-resource-owner/8699/2 "2017-02-07T08:40:32Z")

</div>

You will need to do access\_token api call and assign that token to your saved environment ie the first step in my guide (after configuration).

---

<div class="post-metadata">

### Author: ![klausf11](https://community.xibo.org.uk/letter_avatar_proxy/v4/letter/k/94ad74/32.png) [@klausf11](https://community.xibo.org.uk/u/klausf11)
#### Post date: [February 7, 2017, 8:42am UTC](https://community.xibo.org.uk/t/xibo-api-the-resource-owner/8699/3 "2017-02-07T08:42:40Z")

</div>

I did this yesterday too and it worked. I got the token and added it to the value of access\_token. If i do access\_token api Call i get the message:  
{  
“grid”: false,  
“success”: false,  
“status”: 400,  
“message”: “The request is missing a required parameter, includes an invalid parameter value, includes a parameter more than once, or is otherwise malformed. Check the “access token” parameter.”,  
“id”: null,  
“data”: []  
}

---

<div class="post-metadata">

### Author: ![klausf11](https://community.xibo.org.uk/letter_avatar_proxy/v4/letter/k/94ad74/32.png) [@klausf11](https://community.xibo.org.uk/u/klausf11)
#### Post date: [February 7, 2017, 8:44am UTC](https://community.xibo.org.uk/t/xibo-api-the-resource-owner/8699/4 "2017-02-07T08:44:08Z")

</div>

I dont know whats the problem is. Should i delete the application and repeat all steps?

---

<div class="post-metadata">

### Author: ![Peter](https://community.xibo.org.uk/user_avatar/community.xibo.org.uk/peter/32/8154_2.png) [@Peter](https://community.xibo.org.uk/u/Peter)
#### Post date: [February 7, 2017, 8:47am UTC](https://community.xibo.org.uk/t/xibo-api-the-resource-owner/8699/5 "2017-02-07T08:47:32Z")

</div>

Make sure that you have selected the correct environment and that your environment has correct cms address and clientId, clientSecret of Postman application in your CMS.

Then that the post call has all parameters

 ![](https://community.xibo.org.uk/uploads/default/original/2X/e/ee1dabe594012d0a06873da15813be64eaf00483.png)

---

<div class="post-metadata">

### Author: ![klausf11](https://community.xibo.org.uk/letter_avatar_proxy/v4/letter/k/94ad74/32.png) [@klausf11](https://community.xibo.org.uk/u/klausf11)
#### Post date: [February 7, 2017, 10:02am UTC](https://community.xibo.org.uk/t/xibo-api-the-resource-owner/8699/6 "2017-02-07T10:02:50Z")

</div>

Okay now that works fine.  
But when i want to create a layout it give me this response:

 ![](https://community.xibo.org.uk/uploads/default/original/2X/8/8343a4c9b45b252fe3d9e7ded42b0cea716b7a4f.JPG)

What’s wrong? On the left in “Authorization” is “No Auth” activated, Is this the Problem? I get this error in every API Call except for Access Token.

---

<div class="post-metadata">

### Author: ![Peter](https://community.xibo.org.uk/user_avatar/community.xibo.org.uk/peter/32/8154_2.png) [@Peter](https://community.xibo.org.uk/u/Peter)
#### Post date: [February 7, 2017, 10:21am UTC](https://community.xibo.org.uk/t/xibo-api-the-resource-owner/8699/7 "2017-02-07T10:21:40Z")

</div>

So, each call will need this in headers:

 ![](https://community.xibo.org.uk/uploads/default/original/2X/a/a8a66638a8d1fc4439927ab153cc0a823d43cd63.png)

now if you’re using `{{access_token}}`

then in your environment you need to have  
 ![](https://community.xibo.org.uk/uploads/default/original/2X/9/9110d8d5486d123c9d2941a85e015120954d23e6.png)

and when you first call access\_token, you need to select it and set as a access\_token

 ![](https://community.xibo.org.uk/uploads/default/original/2X/4/4437b40be23b92dd5db834150783a35286151575.png)

Once that is set, the `Bearer {{access_token}}` in all other calls will use the access\_token you saved and should work.

---

<div class="post-metadata">

### Author: ![klausf11](https://community.xibo.org.uk/letter_avatar_proxy/v4/letter/k/94ad74/32.png) [@klausf11](https://community.xibo.org.uk/u/klausf11)
#### Post date: [February 7, 2017, 10:29am UTC](https://community.xibo.org.uk/t/xibo-api-the-resource-owner/8699/8 "2017-02-07T10:29:41Z")

</div>

Now it works nice!  
Thank you
