# PHP Curl for Cloud REST API

**URL:** <https://community.wowza.com/t/php-curl-for-cloud-rest-api/49132>\
**Category:** Wowza Developer Dojo\
**Created:** [July 6, 2017, 9:14am UTC](https://community.wowza.com/t/php-curl-for-cloud-rest-api/49132 "2017-07-06T09:14:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![paul\_davies](https://avatars.discourse-cdn.com/v4/letter/p/e79b87/32.png) [@paul\_davies](https://community.wowza.com/u/paul_davies)\
**Post date:** [July 6, 2017, 9:14am UTC](https://community.wowza.com/t/php-curl-for-cloud-rest-api/49132/1 "2017-07-06T09:14:47Z")

</div>

I am using PHP with Curl to consume the Cloud REST API and have managed to send the key & access key with the header but i am getting a “Invalid Api Key Error”.This is the correct API key and works fine within the Cloud REST API Reference Documentation when making a Curl request to the Cloud REST API. Thanks

---

<div class="post-metadata">

**Author:** ![sumendra\_kumar](https://avatars.discourse-cdn.com/v4/letter/s/977dab/32.png) [@sumendra\_kumar](https://community.wowza.com/u/sumendra_kumar)\
**Post date:** [November 20, 2017, 5:56pm UTC](https://community.wowza.com/t/php-curl-for-cloud-rest-api/49132/2 "2017-11-20T17:56:24Z")

</div>

If you are using sandbox keys then use  
[https://sandbox.cloud.wowza.com/api/v1/live\_streams/](https://sandbox.cloud.wowza.com/api/v1/live_streams/)  
instead of  
[https://api.cloud.wowza.com/api/v1/live\_streams/](https://api.cloud.wowza.com/api/v1/live_streams/)
