API Key
Create and use an API Key to access the Noroff API.
This is an authenticated endpoint. You can visit authentication to register an account.
You only need to create a single API Key for your application. This key can be used for all your requests, regardless of which user is logged in. To simplify the process, use the API Key Tool provided below.
The API Key model
Prop | Type | Default |
---|---|---|
name | string | API Key |
status | string | ACTIVE |
key | string | - |
Create an API Key
You can use this endpoint to create an API Key.
You do not need to provide any data in the request body, but you can optionally provide a name
value.
A successful response will return a 201 Created
status code and the newly created API Key.
Restrictions
- If set, the
name
value must be less than 32 characters.
Types
Prop | Type | Default |
---|---|---|
name | string | API Key |
Using the API Key
You use the API Key by sending it in the X-Noroff-API-Key
header, along with the access token of the requesting user.
API Key Tool
Use this tool to login or register with the Noroff API and retrieve an API key.