Skip to main content
Nash APIs use API keys for authentication and authorization. API keys are created in the Nash Portal; follow this tutorial to create one and to find your Organization ID, which you will also need here.
If your API key has access to multiple Nash Organizations, you must include the Nash-Org-Id header in your request to indicate which Org the request is accessing.
To make an API request, you need to include your API Key and optionally Organization ID in the request headers:
  1. Authorization: Bearer <API KEY>: Replace <API KEY> with your actual API key. This header authenticates your request.
  2. (OPTIONAL) Nash-Org-Id: <ORG ID>: Replace <ORG ID> with the ID of the organization you want to access. This header is required when your API key has access to multiple organizations.
If you followed the tutorial, you should already have your API Key and Organization ID. With these two pieces of information, you can make a request like this:

API key authentication

curl --request GET \
  --url https://api.sandbox.usenash.com/v1/jobs \
  --header 'Authorization: Bearer <API KEY>' \
  --header 'Nash-Org-Id: <ORG ID>'
Your organization’s API key can hold many privileges, so be sure to keep it secure. Be careful not to share the key unintentionally, since it enables direct access to the Nash API.