api.unkey.dev/v1 (deprecated)
cURL
curl --request POST \ --url https://api.unkey.dev/v1/identities.updateIdentity \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "identityId": "id_1234", "externalId": "user_1234", "environment": "default", "meta": {}, "ratelimits": [ { "name": "tokens", "limit": 10, "duration": 1000 } ] }'
{ "id": "id_1234", "externalId": "user_1234", "meta": { "stripeSubscriptionId": "sub_1234" }, "ratelimits": [ { "name": "tokens", "limit": 10, "duration": 1000 } ] }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
The identity after the update.
The response is of type object.
object
Was this page helpful?