Before you can authenticate to the DoD API, you must first complete the prerequisites to subscribe to DoD and generate an API key. Once you have an API key, you can authenticate your requests to the DoD API by adding the
feye-auth-key header to each request.
'feye-auth-key': '<your API key>'
The following snippet is an example cURL request demonstrating the use of the auth header.
curl --location --request POST 'https://feapi.marketplace.apps.fireeye.com/files' \ --header 'feye-auth-key: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9...Mjg4NTk3NDh9.XuADzMOS0G-jOwmx9AVVudhsTxC7tUkEYBMQyj18kP0' \ --header 'Content-Type: multipart/form-data' \ --form 'file=@/Users/user/Downloads/malware.exe'