Add basic auth for REST API #15576
-
Help me solve the problem. I don't understand how to log in via the REST API and get a token (the methods don't work without it). Basic auth does not work (headers.set('Authorization', |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
https://docs.netbox.dev/en/stable/integrations/rest-api/#initial-token-provisioning |
Beta Was this translation helpful? Give feedback.
-
That's correct, it doesn't use Basic auth headers. The header you need to provide is documented here: |
Beta Was this translation helpful? Give feedback.
Well, works here as documented: