List permissions

Permissions API v2
GEThttps://api.mollie.com/v2/permissions

List all permissions available with the current app access token. The list is not paginated.

Parameters

None.

Response

200 application/json

count

integer
The number of permissions found in _embedded.

_embedded

object

The object containing the queried data.

permissions

array
An array of permission objects as described in Get permission.

_links

object

Links related to the lists of permissions. Every URL object will contain an href and a type field.

self

object
The URL to the current set of permissions.

documentation

object
The URL to the permissions list endpoint documentation.

Example

cURLPHPPythonRubyNode.js
1
2
curl -X GET https://api.mollie.com/v2/permissions \
   -H "Authorization: Bearer access_Wwvu7egPcJLLJ9Kb7J632x8wJ2zMeJ"
1
2
3
4
<?php
$mollie = new \Mollie\Api\MollieApiClient();
$mollie->setAccessToken("access_Wwvu7egPcJLLJ9Kb7J632x8wJ2zMeJ");
$permissions = $mollie->permissions->all();
1
2
3
4
5
6
7
require 'mollie-api-ruby'

Mollie::Client.configure do |config|
  config.api_key = 'access_Wwvu7egPcJLLJ9Kb7J632x8wJ2zMeJ'
end

permissions = Mollie::Permission.all
1
2
3
4
We don't have a Python code example for this API call yet.

If you have some time to spare, feel free to open a pull request at:
https://github.com/mollie/api-documentation
1
2
3
4
We don't have a Node.js code example for this API call yet.

If you have some time to spare, feel free to open a pull request at:
https://github.com/mollie/api-documentation

Response

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
HTTP/1.1 200 OK
Content-Type: application/hal+json

{
    "_embedded": {
        "permissions": [
            {
                "resource": "permission",
                "id": "payments.write",
                "description": "Create new payments",
                "granted": false,
                "_links": {
                    "self": {
                        "href": "https://api.mollie.com/v2/permissions/payments.write",
                        "type": "application/hal+json"
                    }
                }
            },
            {
                "resource": "permission",
                "id": "payments.read",
                "description": "View your payments",
                "granted": true,
                "_links": {
                    "self": {
                        "href": "https://api.mollie.com/v2/permissions/payments.read",
                        "type": "application/hal+json"
                    }
                }
            },
            { },
            { },
            { }
       ]
    },
    "count": 15,
    "_links": {
        "documentation": {
            "href": "https://docs.mollie.com/reference/v2/permissions-api/list-permissions",
            "type": "text/html"
        },
        "self": {
            "href": "https://api.mollie.com/v2/permissions",
            "type": "application/hal+json"
        }
    }
}