API keys

Delete API key

Revoke an API key with the Go SDK.

DEL/api-keys/{id}

Use client.ApiKeys.Delete to revoke an API key by ID.

Call the method

resp, _ := client.ApiKeys.Delete(
	"api_key_879f0ecb-e29f-4137-801b-1048366381db",
	&blnkgo.DeleteApiKeysOptions{
		Owner: "merchant_a",
	},
)
FieldTypeDescription
apiKeyIDstringID of the API key to revoke.
options.
Owner
stringOwner of the key. Required when authenticating with the master key.

Confirm the outcome

On success, Core returns 204 No Content. Check resp.StatusCode. The key can no longer authenticate requests.

Response

{}

Returns 204 No Content on success with an empty body. Delete returns (*http.Response, error) only — there is no decoded response struct.