# HTTPApi Authentication in Delphi

**URL:** https://talk.remobjects.com/t/httpapi-authentication-in-delphi/26110
**Category:** Remoting SDK
**Tags:** delphi, httpapi, authentication
**Created:** [February 1, 2022, 9:52am UTC](https://talk.remobjects.com/t/httpapi-authentication-in-delphi/26110 "2022-02-01T09:52:00Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![EvgenyK](https://talk.remobjects.com/user_avatar/talk.remobjects.com/evgenyk/32/16_2.png) [@EvgenyK](https://talk.remobjects.com/u/EvgenyK)
#### Post date: [February 1, 2022, 11:21am UTC](https://talk.remobjects.com/t/httpapi-authentication-in-delphi/26110/2 "2022-02-01T11:21:21Z")

</div>

Hi,

when you call `login` method - it returns `Access-Token: {3099F79B-4550-47F4-883E-82B8B275243F}` in response headers.

see example of execution of methods via CURL at [ServiceRequiresLogin in Delphi - #10 by EvgenyK](https://talk.remobjects.com/t/servicerequireslogin-in-delphi/14687/10)  
Note: Pay attention that verbose mode (`-v`) is required

later you should provide received guid in request header for accessing to protected service’s methods.

Note: You should use `TROHttpApiSimpleAuthenticationManager` otherwise `Access-Token` in headers won’t be work as expected.  
see `HttpApi Authentication` sample for more details.

---

_[View the full topic](https://talk.remobjects.com/t/httpapi-authentication-in-delphi/26110)._
