List permissions

Permissions API v1
GEThttps://api.mollie.com/v1/permissions
Authentication:OAuth access tokens

List all permissions available with the current OAuth access token.

Parameters

offset

integer
optional
The number of permissions to skip.

count

integer
optional
The number of permissions to return (with a maximum of 250).

Response

200 application/json; charset=utf-8

totalCount

integer
The total number of permissions available.

offset

integer
The number of skipped permissions as requested.

count

integer
The number of permissions found in data, which is either the requested number (with a maximum of 250) or the default number.

data

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

links

object

Links to help navigate through the lists of permissions, based on the given offset.

previous

string
The previous set of permissions, if available.

next

string
The next set of permissions, if available.

first

string
The first set of permissions, if available.

last

string
The last set of permissions, if available.

Example

Request

1
2
curl -X GET https://api.mollie.com/v1/permissions \
    -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
21
22
23
24
25
HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8

{
    "totalCount": 9,
    "offset": 0,
    "count": 9,
    "data": [
        {
            "resource": "permission",
            "id": "payments.read",
            "description": "View your payments",
            "warning": null,
            "granted": true
        },
        { },
        { }
    ],
    "links": {
        "first": "https://api.mollie.com/v1/permissions?count=10&offset=0",
        "previous": null,
        "next": "https://api.mollie.com/v1/permissions?count=10&offset=10",
        "last": "https://api.mollie.com/v1/permissions?count=10&offset=20"
    }
}