# Unable to connect to REST API

**URL:** https://forums.concretecms.org/t/unable-to-connect-to-rest-api/7077
**Category:** Using Concrete / Help
**Tags:** api
**Created:** [March 5, 2024, 8:24pm UTC](https://forums.concretecms.org/t/unable-to-connect-to-rest-api/7077 "2024-03-05T20:24:41Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![edgedesign](https://forums.concretecms.org/user_avatar/forums.concretecms.org/edgedesign/32/4177_2.png) [@edgedesign](https://forums.concretecms.org/u/edgedesign)
#### Post date: [March 5, 2024, 8:24pm UTC](https://forums.concretecms.org/t/unable-to-connect-to-rest-api/7077/1 "2024-03-05T20:24:41Z")

</div>

Hey all, i’m new to working with the concrete API system and our team is trying to connect a PWA to a Concrete site to pull page data into the app.

I’ve been following the documentation and youtube video for connecting Postman to Concrete CMS and i’m able to connect and get a token using ‘Client Credentials’, however the result is a 404 not found page when try to GET _mydomain_/ccm/api/v1/system/info (scope: system:info:read)

When i switch to ‘Authorization Code’ I get the following error when requesting a token:

> {“error”:“invalid\_client”,“error\_description”:“Client authentication failed”,“message”:“Client authentication failed”}

CMS: 9.2.2 / PHP: 8.2

Any help would be amazing. Been using Concrete for year, but API is something new to me.

---

<div class="post-metadata">

### Author: ![EvanCooper](https://forums.concretecms.org/user_avatar/forums.concretecms.org/evancooper/32/4597_2.png) [@EvanCooper](https://forums.concretecms.org/u/EvanCooper)
#### Post date: [March 15, 2024, 5:58am UTC](https://forums.concretecms.org/t/unable-to-connect-to-rest-api/7077/2 "2024-03-15T05:58:37Z")

</div>

Hello,

So I believe that video will need to be updated. The endpoint is actually different, it’s

`/ccm/api/1.0`

On any integration, you can check the “get interactive documentation” checkbox which will give you a way to verify what routes are there, and make sure they work before you try to use Postman.

Hope that helps!

---

<div class="post-metadata">

### Author: ![edgedesign](https://forums.concretecms.org/user_avatar/forums.concretecms.org/edgedesign/32/4177_2.png) [@edgedesign](https://forums.concretecms.org/u/edgedesign)
#### Post date: [March 15, 2024, 4:51pm UTC](https://forums.concretecms.org/t/unable-to-connect-to-rest-api/7077/3 "2024-03-15T16:51:03Z")

</div>

Thanks for the reply @EvanCooper -  
You are right- /v1/ doesn’t work. I updated to the following and can get a proper response instead of a 404 error: [https://www](https://www)._domain.whatever_/ccm/api/1.0/files/1

I get the above error when using ‘client credentials’ and if i understand correctly, the ‘files’ scope requires oauth2 authorization. In Postman, when i try to get a new token using ‘authorization code’ and the Client ID/Secret keys i’m unable to connect and get any results from the GET request.

Is there any server-side configuration that needs to occur for API to work?  
I’m stumped.

---

<div class="post-metadata">

### Author: ![EvanCooper](https://forums.concretecms.org/user_avatar/forums.concretecms.org/evancooper/32/4597_2.png) [@EvanCooper](https://forums.concretecms.org/u/EvanCooper)
#### Post date: [March 22, 2024, 8:40am UTC](https://forums.concretecms.org/t/unable-to-connect-to-rest-api/7077/4 "2024-03-22T08:40:41Z")

</div>

Hmm - when you do the “get interactive documentation” testing in the dashboard does it work as expected?

---

<div class="post-metadata">

### Author: ![edgedesign](https://forums.concretecms.org/user_avatar/forums.concretecms.org/edgedesign/32/4177_2.png) [@edgedesign](https://forums.concretecms.org/u/edgedesign)
#### Post date: [March 22, 2024, 2:24pm UTC](https://forums.concretecms.org/t/unable-to-connect-to-rest-api/7077/5 "2024-03-22T14:24:26Z")

</div>

Yes, using the _concrete interactive API documentation_, and using only “authorization (OAuth2, authorizationCode)” i’m able to return a result for GET files `[Preformatted text](https://www.domain.whatever/ccm/api/1.0/files/1)`

---

<div class="post-metadata">

### Author: ![edgedesign](https://forums.concretecms.org/user_avatar/forums.concretecms.org/edgedesign/32/4177_2.png) [@edgedesign](https://forums.concretecms.org/u/edgedesign)
#### Post date: [March 27, 2024, 8:26pm UTC](https://forums.concretecms.org/t/unable-to-connect-to-rest-api/7077/6 "2024-03-27T20:26:52Z")

</div>

Looks like the access was just a misconfiguration / lack of understanding on process on my part. I missed the Callback URL and scope.

Learning new things everyday haha.

---

<div class="post-metadata">

### Author: ![EvanCooper](https://forums.concretecms.org/user_avatar/forums.concretecms.org/evancooper/32/4597_2.png) [@EvanCooper](https://forums.concretecms.org/u/EvanCooper)
#### Post date: [April 1, 2024, 6:32am UTC](https://forums.concretecms.org/t/unable-to-connect-to-rest-api/7077/7 "2024-04-01T06:32:46Z")

</div>

It’s definitely a lot to learn! Glad you could get it all sorted 👍
