List API keys

Profiles API v1

Warning

The v1 API has been deprecated. The v1 API will be supported for the foreseeable future, at least until July 2023. However, new features will only be added to the v2 API.

For more information on the v2 API, refer to our v2 migration guide.

GEThttps://api.mollie.com/v1/profiles/*id*/apikeys
Authentication:App access tokens

List the active API keys for the given payment profile.

Note

You cannot retrieve API keys for a different account than your own, even if you have a valid OAuth token.

If you wish to create a payment on behalf of a different merchant, use your app’s access token and the profileId of one of the merchant’s payment profiles when creating a payment.

Parameters

Replace id in the endpoint URL by the payment profile’s ID, for example pfl_v9hTwCvYqw.

Response

200 application/json

countinteger
The number of API keys found in data.
dataarray
An array of API key objects as described in Get API key.

Example

Request

1
2
curl -X GET https://api.mollie.com/v1/profiles \
    -H "Authorization: Bearer access_Wwvu7egPcJLLJ9Kb7J632x8wJ2zMeJ"

Response

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
HTTP/1.1 200 OK
Content-Type: application/json

{
    "count": 2,
    "data": [
        {
            "resource": "profile_api_key",
            "id": "live",
            "key": "live_eSf9fQRwpsdfPY8y3tUFFmqjADRKyA",
            "createdDatetime": "2018-03-17T01:47:47.0Z"
        },
        {
            "resource": "profile_api_key",
            "id": "test",
            "key": "test_UgfUyzqgrbh6dAfjYBQTMhPD3nQTda",
            "createdDatetime": "2018-03-17T01:47:47.0Z"
        }
    ]
}