Create API Key for User¶
This endpoint creates a new API key for a user.
Request¶
POST https://v2.api.uberflip.com/users/{userId}/api-keys
| Path Parameters | Description |
|---|---|
| userId | The unique identifier of the user |
| Body Parameters | Properties | Type | Description |
|---|---|---|---|
| name | String | The API key name |
Response¶
| Body Parameters | Type | Description |
|---|---|---|
| id | Integer | The unique 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 -X POST -H "Content-Type: application/json" -H "Authorization: Bearer [Token]" -d "{ \
\"name\": \"new_key\" \
}" \
-i https://v2.api.uberflip.com/users/{userId}/api-keys