curl --request POST \
--url https://api.unkey.dev/v1/keys \
--header 'Authorization: Bearer unkey_8utaTazvpL7yXjqngegmVW' \
--header 'Content-Type: application/json' \
--data '{
"apiId":"api_7oKUUscTZy22jmVf9THxDA",
"prefix":"xyz",
"byteLength":16,
"ownerId":"james",
"meta":{
"hello": "world"
},
"expires": 17187186732,
"ratelimit":{
"type":"fast",
"limit":10,
"refillRate": 1,
"refillInterval": 1000
}
}'
This returns expires must be in the future, the date is in 2054. We should double check two things: