# UnauthorizedError when using Broker API

**URL:** https://forum.alpaca.markets/t/unauthorizederror-when-using-broker-api/18877
**Category:** Getting Started with Alpaca
**Created:** [May 24, 2026, 3:16pm UTC](https://forum.alpaca.markets/t/unauthorizederror-when-using-broker-api/18877 "2026-05-24T15:16:39Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![curious\_sonic](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.alpaca.markets/curious_sonic/32/7121_2.png) [@curious\_sonic](https://forum.alpaca.markets/u/curious_sonic)
#### Post date: [May 24, 2026, 3:16pm UTC](https://forum.alpaca.markets/t/unauthorizederror-when-using-broker-api/18877/1 "2026-05-24T15:16:39Z")

</div>

hi, i onboarded to the broker api yesterday and im trying to do some basic calls but i keep getting a 401 unauthorized error. Did anyone else have this problem? Am I doing something wrong, Please let me know. I know for certain that my api key and secret are correct. I have included a screenshot below.

 ![Screenshot 2026-05-24 at 11.15.30 AM](https://us1.discourse-cdn.com/flex020/uploads/alp/original/2X/3/33d0d035f54f4bd17c7207447eae68c0d032c6cc.png)
