Skip to main content

Secret Keys

The Secret Key object represents a key a business uses to connect its own systems to its Harlyy account. A secret key is sent as a bearer token and has exactly the permissions it was given. See Authentication for how to use secret keys, and why third-party integrations must use OAuth 2.0 instead.

Secret keys are only enabled for a business on request. Contact our support team to get access.

warning

The secret is only returned when the key is created. Store it securely and never expose it in client-side applications.

The Secret Key Object​

Schema SecretKey not found in OpenAPI spec.

Retrieve Secret Keys​

Retrieve all secret-keys for a business

Parameters

businessstringPath RequiredField must be in path.

The unique identifier of the business whose secret-keys should be retrieved.

Returns200

Successfully retrieved the secret-keys associated with the specified business.

No external docs found for ListResponse_SecretKey.
Endpoint
GET /v2/businesses/{business}/secret-keys

Retrieve a Secret Key​

Retrieve details of a specific secret-key

Parameters

businessstringPath RequiredField must be in path.

The unique identifier of the business that owns the secret-key.

secretKeystringPath RequiredField must be in path.

The unique identifier of the secret-key to retrieve.

Returns200

Successfully retrieved the specified secret-key.

No external docs found for ObjectResponse_SecretKey.
Endpoint
GET /v2/businesses/{business}/secret-keys/{secretKey}

Introspect a Secret Key​

Introspect a secret-key for a business

Parameters

businessstringPath RequiredField must be in path.

The unique identifier of the business that owns the secret-key.

Returns200

Successfully introspected the specified secret-key.

No external docs found for ObjectResponse_SecretKey.
Endpoint
GET /v2/businesses/{business}/secret-keys/introspect

Create a Secret Key​

Create new secret-keys for a business

Parameters

businessstringPath RequiredField must be in path.

The unique identifier of the business for which the secret-key should be created.

Schema undefined not found in OpenAPI spec.

Returns201

Successfully created new secret-keys for the specified business. The response contains the client secret, which is only available at the time of creation.

No external docs found for ObjectResponse_SecretKey.
Endpoint
POST /v2/businesses/{business}/secret-keys

Update a Secret Key​

Update an existing secret-key for a business

Parameters

businessstringPath RequiredField must be in path.

The unique identifier of the business that owns the secret-key.

secretKeystringPath RequiredField must be in path.

The unique identifier of the secret-key to update.

Schema undefined not found in OpenAPI spec.

Returns200

Successfully updated the specified secret-key.

No external docs found for ObjectResponse_SecretKey.
Endpoint
PATCH /v2/businesses/{business}/secret-keys/{secretKey}

Delete a Secret Key​

Revoke and delete an secret-key for a business

Parameters

businessstringPath RequiredField must be in path.

The unique identifier of the business that owns the secret-key.

secretKeystringPath RequiredField must be in path.

The unique identifier of the secret-key to be revoked and deleted.

Returns204

Successfully deleted the specified secret-key. No content is returned in the response.

Endpoint
DELETE /v2/businesses/{business}/secret-keys/{secretKey}