API Keys
API keys offer an alternate method of authentication to the Matatika API using a client ID and secret. Access using API key credentials is supported by the Matatika CLI and SDK, which allows a user to remain authenticated permanently.
Objects
API Key
| Path | JSON Type | Format | Description |
|---|---|---|---|
id |
string |
Version 4 UUID | The API key ID |
created |
string |
ISO 8601 timestamp | The instant when the API key was created |
lastModified |
string |
ISO 8601 timestamp | The instant when the API key was last modified |
name |
string |
The API key name | |
clientId |
string |
The API key client ID | |
profileId |
string |
The API key owner profile ID |
{
"id" : "ebe13c23-3383-41ee-89f6-18d4d14563a2",
"created" : "2025-12-08T11:42:53.84267",
"lastModified" : "2025-12-08T11:42:53.842671",
"name" : "SIT-generated api key (2025-12-08T11:42:53.803957636)",
"clientId" : "FYKiy0vQao1rank0j5nVAon3BosKiQdW",
"profileId" : "auth0|5eb0327cbfd7490bff55feeb",
"_links" : {
"self" : {
"href" : "https://app.matatika.com/api/apikeys/ebe13c23-3383-41ee-89f6-18d4d14563a2"
},
"update apikey" : {
"href" : "https://app.matatika.com/api/apikeys/ebe13c23-3383-41ee-89f6-18d4d14563a2"
},
"delete apikey" : {
"href" : "https://app.matatika.com/api/apikeys/ebe13c23-3383-41ee-89f6-18d4d14563a2"
},
"profile" : {
"href" : "https://app.matatika.com/api/profiles/auth0%7C5eb0327cbfd7490bff55feeb"
}
}
}
Requests
- View all API keys
- View an API key
- Initialise an API key
- Create an API key
- Update an API key
- Delete an API key
View all API keys
GET
/api/apikeys
Returns all API keys owned by the authenticated user profile.
Prerequisites
- The authenticated user must own a Matatika account
- The API key
{apikey-id}must exist
Request
Example Snippets
cURL
curl -H "Authorization: Bearer $ACCESS_TOKEN" 'https://app.matatika.com/api/apikeys/' -i -X GET
Python (requests)
import requests
url = "https://app.matatika.com/api/apikeys/"
headers = {
'Authorization': ACCESS_TOKEN
}
response = requests.request("GET", url, headers=headers)
print(response.text.encode('utf8'))
Response
200 OK
API key collection with HAL links.
{
"_embedded" : {
"apikeys" : [ {
"id" : "5b44bbe6-aa87-48e7-abe0-8514a71dbfd4",
"created" : "2025-12-08T11:42:52.762622",
"lastModified" : "2025-12-08T11:42:52.762623",
"name" : "default",
"clientId" : "u55xiBzu7byQSItlOyjj3qXSSAlx1c5C",
"profileId" : "auth0|5eb0327cbfd7490bff55feeb",
"accessToken" : "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6IlJFRkNRamczTlRRMk16QTROalpHT0RjNFFUWkJOemMyTkRGR1FUSkVOVEEyUkRkR1JrSkRPQSJ9.eyJpc3MiOiJodHRwczovL2lkZW50aXR5Lm1hdGF0aWthLmNvbS8iLCJzdWIiOiJ1NTV4aUJ6dTdieVFTSXRsT3lqajNxWFNTQWx4MWM1Q0BjbGllbnRzIiwiYXVkIjoiaHR0cHM6Ly9hcHAubWF0YXRpa2EuY29tL2FwaSIsImlhdCI6MTc2NTE5NDE3MywiZXhwIjoxNzY1MjgwNTczLCJndHkiOiJjbGllbnQtY3JlZGVudGlhbHMiLCJhenAiOiJ1NTV4aUJ6dTdieVFTSXRsT3lqajNxWFNTQWx4MWM1QyJ9.Z5wDPSvPMDsouEyHXPG9eDuCg4gjhFlA62fePt4WfhvpXN7zxAaYjODTqT0UIwiC4eBjlj9L2RpthF_v2dlVy8dbLDticqlk8m6ARkasgMDnXbSL57gq86yBK__FQso5zSFzUr4SkFlzwqlJKoAMCNKBN6WtZtJSTCmtkIopRaOvP2Lc9vTqmgcAWvz0lvEgN8htmOecT692Jrvgn_n_E0nvdUzm2b0dlGlc_dSVxFZqHQSOXxnY569lWRLiIIJnqMiYwb1r0Q3B1ZqTPUabJAzt6RK3MUAwFgU0FqV4vXmfSAk2Qr5VZbmU31tbPBINSiIqscCCHM8zxJaIP29bww",
"_links" : {
"self" : {
"href" : "https://app.matatika.com/api/apikeys/5b44bbe6-aa87-48e7-abe0-8514a71dbfd4"
},
"update apikey" : {
"href" : "https://app.matatika.com/api/apikeys/5b44bbe6-aa87-48e7-abe0-8514a71dbfd4"
},
"delete apikey" : {
"href" : "https://app.matatika.com/api/apikeys/5b44bbe6-aa87-48e7-abe0-8514a71dbfd4"
},
"profile" : {
"href" : "https://app.matatika.com/api/profiles/auth0%7C5eb0327cbfd7490bff55feeb"
}
}
}, {
"id" : "ebe13c23-3383-41ee-89f6-18d4d14563a2",
"created" : "2025-12-08T11:42:53.84267",
"lastModified" : "2025-12-08T11:42:53.842671",
"name" : "SIT-generated api key (2025-12-08T11:42:53.803957636)",
"clientId" : "FYKiy0vQao1rank0j5nVAon3BosKiQdW",
"profileId" : "auth0|5eb0327cbfd7490bff55feeb",
"_links" : {
"self" : {
"href" : "https://app.matatika.com/api/apikeys/ebe13c23-3383-41ee-89f6-18d4d14563a2"
},
"update apikey" : {
"href" : "https://app.matatika.com/api/apikeys/ebe13c23-3383-41ee-89f6-18d4d14563a2"
},
"delete apikey" : {
"href" : "https://app.matatika.com/api/apikeys/ebe13c23-3383-41ee-89f6-18d4d14563a2"
},
"profile" : {
"href" : "https://app.matatika.com/api/profiles/auth0%7C5eb0327cbfd7490bff55feeb"
}
}
} ]
},
"_links" : {
"self" : {
"href" : "https://app.matatika.com/api/apikeys/?page=0&size=20"
}
},
"page" : {
"size" : 20,
"totalElements" : 2,
"totalPages" : 1,
"number" : 0
}
}
View an API key
GET
/api/apikeys/{apikey-id}
Returns the API key {apikey-id}.
Prerequisites
- The authenticated user must own a Matatika account
- The API key
{apikey-id}must exist
Request
Example Snippets
cURL
curl -H "Authorization: Bearer $ACCESS_TOKEN" 'https://app.matatika.com/api/apikeys/ebe13c23-3383-41ee-89f6-18d4d14563a2' -i -X GET
Python (requests)
import requests
url = "https://app.matatika.com/api/apikeys/ebe13c23-3383-41ee-89f6-18d4d14563a2"
headers = {
'Authorization': ACCESS_TOKEN
}
response = requests.request("GET", url, headers=headers)
print(response.text.encode('utf8'))
Response
200 OK
API key with HAL links.
{
"id" : "ebe13c23-3383-41ee-89f6-18d4d14563a2",
"created" : "2025-12-08T11:42:53.84267",
"lastModified" : "2025-12-08T11:42:53.842671",
"name" : "SIT-generated api key (2025-12-08T11:42:53.803957636)",
"clientId" : "FYKiy0vQao1rank0j5nVAon3BosKiQdW",
"profileId" : "auth0|5eb0327cbfd7490bff55feeb",
"_links" : {
"self" : {
"href" : "https://app.matatika.com/api/apikeys/ebe13c23-3383-41ee-89f6-18d4d14563a2"
},
"update apikey" : {
"href" : "https://app.matatika.com/api/apikeys/ebe13c23-3383-41ee-89f6-18d4d14563a2"
},
"delete apikey" : {
"href" : "https://app.matatika.com/api/apikeys/ebe13c23-3383-41ee-89f6-18d4d14563a2"
},
"profile" : {
"href" : "https://app.matatika.com/api/profiles/auth0%7C5eb0327cbfd7490bff55feeb"
}
}
}
Initialise an API key
POST
/api/apikeys
Initialises a new API key.
Prerequisites
- The authenticated user must own a Matatika account
Request
Example Snippets
cURL
curl -H "Authorization: Bearer $ACCESS_TOKEN" 'https://app.matatika.com/api/apikeys/' -i -X POST \
-H 'Content-Type: application/json'
Python (requests)
import requests
url = "https://app.matatika.com/api/apikeys/"
headers = {
'Authorization': ACCESS_TOKEN
}
response = requests.request("POST", url, headers=headers)
print(response.text.encode('utf8'))
Response
200 OK
API key with HAL links.
{
"id" : "ebe13c23-3383-41ee-89f6-18d4d14563a2",
"created" : "2025-12-08T11:42:53.779469203",
"lastModified" : "2025-12-08T11:42:53.779470103",
"profileId" : "auth0|5eb0327cbfd7490bff55feeb",
"_links" : {
"create apikey" : {
"href" : "https://app.matatika.com/api/apikeys/ebe13c23-3383-41ee-89f6-18d4d14563a2"
}
}
}
Create an API key
PUT
/api/apikeys/{apikey-id}
Creates the API key {apikey-id}.
Prerequisites
- The authenticated user must own a Matatika account
Request
Body
API key resource.
{
"name" : "SIT-generated api key (2025-12-08T11:42:53.803957636)"
}
Example Snippets
cURL
curl -H "Authorization: Bearer $ACCESS_TOKEN" 'https://app.matatika.com/api/apikeys/ebe13c23-3383-41ee-89f6-18d4d14563a2' -i -X PUT \
-H 'Content-Type: application/json' \
-d '{
"name" : "SIT-generated api key (2025-12-08T11:42:53.803957636)"
}'
Python (requests)
import requests
url = "https://app.matatika.com/api/apikeys/ebe13c23-3383-41ee-89f6-18d4d14563a2"
data = {
"name" : "SIT-generated api key (2025-12-08T11:42:53.803957636)"
}
headers = {
'Authorization': ACCESS_TOKEN
}
response = requests.request("PUT", url, headers=headers, data=data)
print(response.text.encode('utf8'))
Response
201 Created
API key with HAL links.
{
"id" : "ebe13c23-3383-41ee-89f6-18d4d14563a2",
"created" : "2025-12-08T11:42:53.842670394",
"lastModified" : "2025-12-08T11:42:53.842671294",
"name" : "SIT-generated api key (2025-12-08T11:42:53.803957636)",
"clientId" : "FYKiy0vQao1rank0j5nVAon3BosKiQdW",
"clientSecret" : "3nNKiu6bt6LixLcpEZnC80ldo16QNYwcKwpIFsWfoVZh24738ltnDKFNQpGink-p",
"profileId" : "auth0|5eb0327cbfd7490bff55feeb",
"_links" : {
"self" : {
"href" : "https://app.matatika.com/api/apikeys/ebe13c23-3383-41ee-89f6-18d4d14563a2"
},
"update apikey" : {
"href" : "https://app.matatika.com/api/apikeys/ebe13c23-3383-41ee-89f6-18d4d14563a2"
},
"delete apikey" : {
"href" : "https://app.matatika.com/api/apikeys/ebe13c23-3383-41ee-89f6-18d4d14563a2"
},
"profile" : {
"href" : "https://app.matatika.com/api/profiles/auth0%7C5eb0327cbfd7490bff55feeb"
}
}
}
Update an API key
PUT
/api/apikeys/{apikey-id}
Updates the API key {apikey-id}.
Prerequisites
- The authenticated user must own a Matatika account
Request
Body
API key resource.
{
"name" : "SIT-generated api key (2025-12-08T11:42:53.803957636) (updated)"
}
Example Snippets
cURL
curl -H "Authorization: Bearer $ACCESS_TOKEN" 'https://app.matatika.com/api/apikeys/ebe13c23-3383-41ee-89f6-18d4d14563a2' -i -X PUT \
-H 'Content-Type: application/json' \
-d '{
"name" : "SIT-generated api key (2025-12-08T11:42:53.803957636) (updated)"
}'
Python (requests)
import requests
url = "https://app.matatika.com/api/apikeys/ebe13c23-3383-41ee-89f6-18d4d14563a2"
data = {
"name" : "SIT-generated api key (2025-12-08T11:42:53.803957636) (updated)"
}
headers = {
'Authorization': ACCESS_TOKEN
}
response = requests.request("PUT", url, headers=headers, data=data)
print(response.text.encode('utf8'))
Response
200 OK
API key with HAL links.
{
"id" : "ebe13c23-3383-41ee-89f6-18d4d14563a2",
"created" : "2025-12-08T11:42:53.84267",
"lastModified" : "2025-12-08T11:42:54.709592102",
"name" : "SIT-generated api key (2025-12-08T11:42:53.803957636) (updated)",
"clientId" : "FYKiy0vQao1rank0j5nVAon3BosKiQdW",
"profileId" : "auth0|5eb0327cbfd7490bff55feeb",
"_links" : {
"self" : {
"href" : "https://app.matatika.com/api/apikeys/ebe13c23-3383-41ee-89f6-18d4d14563a2"
},
"update apikey" : {
"href" : "https://app.matatika.com/api/apikeys/ebe13c23-3383-41ee-89f6-18d4d14563a2"
},
"delete apikey" : {
"href" : "https://app.matatika.com/api/apikeys/ebe13c23-3383-41ee-89f6-18d4d14563a2"
},
"profile" : {
"href" : "https://app.matatika.com/api/profiles/auth0%7C5eb0327cbfd7490bff55feeb"
}
}
}
Delete an API key
DELETE
/api/apikeys/{apikey-id}
Deletes the API key {apikey-id}.
Prerequisites
- The authenticated user must own a Matatika account
- The API key
{apikey-id}must exist
Request
Example Snippets
cURL
curl -H "Authorization: Bearer $ACCESS_TOKEN" 'https://app.matatika.com/api/apikeys/ebe13c23-3383-41ee-89f6-18d4d14563a2' -i -X DELETE
Python (requests)
import requests
url = "https://app.matatika.com/api/apikeys/ebe13c23-3383-41ee-89f6-18d4d14563a2"
headers = {
'Authorization': ACCESS_TOKEN
}
response = requests.request("DELETE", url, headers=headers)
print(response.text.encode('utf8'))
Response
204 No Content
No response body provided.