List API Keys of User¶
This endpoint returns a paginated list of all the API keys owned by a user.
Request¶
GET https://v2.api.uberflip.com/users/{userId}/api-keys
| Path Parameters | Description |
|---|---|
| userId | The unique identifier of the user |
Response¶
The response will contain a users collection:
| Body Parameters | Type | Description |
|---|---|---|
| data | Array | The collection of API keys |
| meta | Object | See: Pagination |
Each user in the collection will have properties:
| Body Parameters | Type | Description |
|---|---|---|
| id | Integer | The API key identifier |
| name | String | The API key name |
| key | String | The API key |
| secret | String | The API key secret |
| created_at | DateTime | The API key creation time |
| modified_at | DateTime | The API key last updated time |
Examples¶
curl -H "Authorization: Bearer [Token]" \
-i https://v2.api.uberflip.com/users/{userId}/api-keys
Sample response:
HTTP/1.1 200 OK
Content-Type: application/json
{
"data": [
{
"id": 1,
"name": "",
"key": "[key]",
"secret": "[secret]",
"created_at": "2018-07-09T20:22:24-0400",
"modified_at": "-0001-11-30T00:00:00-0500"
}
],
"meta": {
"count": 1,
"limit": 25,
"total_pages": 1
}
}