curl --location -g --request GET '{{BASE_URL}}/admin/api-keys/'
{
"api_key": {
"id": "string",
"token": "string",
"redacted": "sk_...123",
"title": "string",
"last_used_at": "2019-08-24T14:15:22Z",
"created_by": "string",
"created_at": "2019-08-24T14:15:22Z",
"revoked_by": "string",
"revoked_at": "2019-08-24T14:15:22Z",
"updated_at": "2019-08-24T14:15:22Z",
"deleted_at": "2019-08-24T14:15:22Z",
"type": "secret"
}
}
+
it will be added to the default fields, using -
will remove it from the default fields. without prefix it will replace the entire default fields.secret
is used for a user's API key, whereas publishable
is used for Publishable API keys.