Authentication
The requirement to retrieve list of occupations
The Occupations API supports API Key Authentication. The API key is to be passed in the request headers (X-API-KEY and X-Client-ID) and will be securely generated and managed. The key will expire every 12 months, with a new key provided a month before expiry.
Example API keys
X-API-KEY: gLK3XRYASu0rAuMuZEqgZhCFmjavC7_75SuS4e5dMkWk
X-Client-ID: a1b2c3d4e5f67890abcdef1234567890
Use token in API call
curl --location 'https://api.tahatu.govt.nz/occupations' \
--header 'X-API-KEY: gLK3XRYASu0rAuMuZEqgZhCFmjavC7_75SuS4e5dMkWk' \
--header 'X-Client-ID: a1b2c3d4e5f67890abcdef1234567890'