Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

stefanverweij's avatar

Spark API authentication

Hi, I was wondering if the Spark API can only be used by authentication with the url parameter (?api_token=XXXXXX)? Or is it also possible to send the token in the header? I can only get it to work using the url parameter currently. Thanks!

0 likes
2 replies
threeel's avatar

you can use an Authorization header and use Bearer {your-token} on the value

1 like

Please or to participate in this conversation.