API Keys
Update API key
Rename an existing API key or adjust its expiration date.
PATCH
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
curl -X PATCH https://api.mailofly.com/api/v1/api-keys/key_123456 \
-H "Authorization: Bearer mf_live_your_api_key" \
-H "Content-Type: application/json" \
-d '{
"name": "Staging Backend"
}'
{
"data": {
"id": "key_123456",
"name": "Staging Backend",
"secret_suffix": "9aBc",
"expires_at": null
}
}
Rename an existing API key or adjust its expiration date.
curl -X PATCH https://api.mailofly.com/api/v1/api-keys/key_123456 \
-H "Authorization: Bearer mf_live_your_api_key" \
-H "Content-Type: application/json" \
-d '{
"name": "Staging Backend"
}'
{
"data": {
"id": "key_123456",
"name": "Staging Backend",
"secret_suffix": "9aBc",
"expires_at": null
}
}
null for no expiration.curl -X PATCH https://api.mailofly.com/api/v1/api-keys/key_123456 \
-H "Authorization: Bearer mf_live_your_api_key" \
-H "Content-Type: application/json" \
-d '{
"name": "Staging Backend"
}'
{
"data": {
"id": "key_123456",
"name": "Staging Backend",
"secret_suffix": "9aBc",
"expires_at": null
}
}