List permissions¶
Permissions API v1
GET
https://api.mollie.com/v1/permissions
Authentication:App access tokens
List all permissions available with the current app access token.
Parameters¶
offset
integeroptional
The number of permissions to skip.
count
integeroptional
The number of permissions to return (with a maximum of 250).
Response¶
200
application/json
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
objectLinks 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 { "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" } } |