ApiKey

Learn how to provide the API key that authenticates your application.

This class represents the API key that authenticates your application with Croct. It optionally carries a private key used to sign user tokens when you identify visitors.

Provide it, or its serialized string, when you create the SDK.

Croct's mascot winking
Looking for something specific?

Use the search bar at the top of the page or press / to quickly search through the documentation.

Use the summary below to quickly jump to a specific topic:

PageDescription
parseLearn how to create an API key from its serialized string.
ofLearn how to create an API key from an identifier and a private key.
getIdentifierLearn how to get the public identifier of the API key.
hasPrivateKeyLearn how to check whether the API key can sign user tokens.