# PHP Api Can't Authenticate on Schemas

**URL:** <https://community.hubspot.com/t/php-api-cant-authenticate-on-schemas/69135>\
**Category:** APIs & Integrations\
**Created:** [November 11, 2022, 7:06pm UTC](https://community.hubspot.com/t/php-api-cant-authenticate-on-schemas/69135 "2022-11-11T19:06:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![MAgnese4](https://avatars.discourse-cdn.com/v4/letter/m/e36b37/32.png) [@MAgnese4](https://community.hubspot.com/u/MAgnese4)\
**Post date:** [November 11, 2022, 7:06pm UTC](https://community.hubspot.com/t/php-api-cant-authenticate-on-schemas/69135/1 "2022-11-11T19:06:11Z")

</div>

Hi!  
I’m working on an integration and when I try to create a custom object schema, I’m having an Exception…

---

Exception - [401] Client error: `POST [https://api.hubapi.com/crm/v3/schemas\`](https://api.hubapi.com/crm/v3/schemas%5C%60) resulted in a `401 Unauthorized` response: {“status”:“error”,“message”:"Authentication credentials not found. This API supports both API Key and OAuth 2.0 authenti (truncated…)

---

Keys are correct because I still can create clients.

I’ve created a private app to do this and I have the version 8.4.1 installed  
Can someone help me please?

---

<div class="post-metadata">

**Author:** ![Jaycee\_Lewis](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jaycee_lewis/32/61352_2.png) [@Jaycee\_Lewis](https://community.hubspot.com/u/Jaycee_Lewis)\
**Post date:** [November 14, 2022, 11:37pm UTC](https://community.hubspot.com/t/php-api-cant-authenticate-on-schemas/69135/2 "2022-11-14T23:37:36Z")

</div>

Hey, @MAgnese4 👋 Is this issue persisting? I am happy to dig a bit more for us if so.

Best,

Jaycee

---

<div class="post-metadata">

**Author:** ![MAgnese4](https://avatars.discourse-cdn.com/v4/letter/m/e36b37/32.png) [@MAgnese4](https://community.hubspot.com/u/MAgnese4)\
**Post date:** [November 15, 2022, 12:40pm UTC](https://community.hubspot.com/t/php-api-cant-authenticate-on-schemas/69135/3 "2022-11-15T12:40:48Z")

</div>

Hi Jaycee!  
Yes. I’ve solved it using cURL in php with same credentials.  
Thanks for asking!
