Support the ongoing development of Laravel.io →
Authentication Requests

Hi guys,

Would like to know where you store api token when requesting a data? is it in query string or header (X-Auth-Token)

Last updated 3 years ago.
0

Wherever the API specifies you should.

If it's OAuth2, it should support either in the Authorization header or as a query string parameter. Wherever possible, I like to pass it in the Authorization header.

Last updated 3 years ago.
0

Sign in to participate in this thread!

PHPverse

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.