Skip to content

How to pass custom API key headers (e.g., DOLAPIKEY) for authentication? #30

@rahilmehta-dev

Description

@rahilmehta-dev

I'm trying to test the Dolibarr API which requires a custom DOLAPIKEY header for authentication. I'm not sure if I'm configuring AutoRestTest correctly or if this is currently supported.
The Dolibarr API needs the DOLAPIKEY header to be passed with every request

What I've Tried

  1. Enabled the Header Agent in configurations.toml:
[agents.header]
 enabled = true
  1. However, the documentation states that the Header Agent only supports Basic Authentication (username/password), not custom API keys.

My Questions

  1. Is there a way to pass custom API key headers through configuration without modifying the code?
  2. Should I be using a different approach or configuration?

If you need the spec file, I can share it. Any guidance would be appreciated!

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions