1- Create an Token

Authorization Documentation : https://netbox.readthedocs.io/en/latest/api/authentication/

Under api/token

http://172.30.92.97/user/api-tokens/



Use Postman: 




cURL:

curl -H "Authorization: Token d2f763479f703d80de0ec15254237bc651f9cdc0"   http://172.30.92.97/api/dcim/sites/


curl -H "Authorization: Token 59xxxxxxxxxxxxxxxxxxxxxxxxxxxx006" -H "Accept: application/json; indent=4" http://172.30.92.97/api/dcim/sites/