Get current user details
GET
/api/v0/users- Example request:
- BashCopied to clipboard
curl https://app.cloudcannon.com/api/v0/users \ -H "X-API-KEY: <your-api-key>" - Responses:
200OK
JSONCopied to clipboard{ "country": "string", "job_title": "string", "ssg_experience": "string", "last_sign_in_at": "2024-01-01T00:00:00Z", "current_sign_in_at": "2024-01-01T00:00:00Z" }403Forbidden
JSONCopied to clipboard{ "error": "string" }
Update current user information
PUT
/api/v0/users- Request body:
- Example request:
- BashCopied to clipboard
curl https://app.cloudcannon.com/api/v0/users \ -X PUT \ -H "X-API-KEY: <your-api-key>" \ -H "Content-Type: application/json" \ -d '{ "first_name": "string", "surname": "string", "ssg_experience": "string", "job_title": "string" }' - Responses:
200OK
JSONCopied to clipboard{ "country": "string", "job_title": "string", "ssg_experience": "string", "last_sign_in_at": "2024-01-01T00:00:00Z", "current_sign_in_at": "2024-01-01T00:00:00Z" }403Forbidden
JSONCopied to clipboard{ "error": "string" }422Unprocessable
JSONCopied to clipboard{ "errors": {} }
Get user details
GET
/api/v0/users/{user_identifier}- Path parameters:
- Example request:
- BashCopied to clipboard
curl https://app.cloudcannon.com/api/v0/users/{user_identifier} \ -H "X-API-KEY: <your-api-key>" - Responses:
200OK
JSONCopied to clipboard{ "uuid": "00000000-0000-0000-0000-000000000000", "id": 0, "first_name": "string", "surname": "string", "email": "string", "otp_required_for_login": true }403Forbidden
JSONCopied to clipboard{ "error": "string" }
Redirect to avatar
GET
/api/v0/users/{user_identifier}/avatar- Path parameters:
- Query parameters:
Avatar size in pixels
- Example request:
- BashCopied to clipboard
curl https://app.cloudcannon.com/api/v0/users/{user_identifier}/avatar \ -H "X-API-KEY: <your-api-key>" - Responses:
302Redirect
403Forbidden
JSONCopied to clipboard{ "error": "string" }
Get current user's access keys
GET
/api/v0/users/access_keys- Filters:
- Sorting:
Attribute to sort the results by
Defaults to:
"created_at"Allowed values:
key_idnamecreated_atupdated_atDirection to sort the results
Defaults to:
"DESC"Allowed values:
ASCDESC- Pagination:
Page number to fetch (1-indexed)
Number of items per page
- Example request:
- BashCopied to clipboard
curl https://app.cloudcannon.com/api/v0/users/access_keys \ -H "X-API-KEY: <your-api-key>" - Responses:
200OK
JSONCopied to clipboard[ { "uuid": "00000000-0000-0000-0000-000000000000", "id": 0, "name": "string", "key_id": "string", "login_session_id": 0, "revoked_at": "2024-01-01T00:00:00Z", "created_at": "2024-01-01T00:00:00Z", "updated_at": "2024-01-01T00:00:00Z" } ]403Forbidden
JSONCopied to clipboard{ "error": "string" }
Create a new access key
POST
/api/v0/users/access_keys- Request body:
- Example request:
- BashCopied to clipboard
curl https://app.cloudcannon.com/api/v0/users/access_keys \ -X POST \ -H "X-API-KEY: <your-api-key>" \ -H "Content-Type: application/json" \ -d '{ "name": "string" }' - Responses:
200OK
JSONCopied to clipboard{ "access_key": { "uuid": "00000000-0000-0000-0000-000000000000", "id": 0, "name": "string", "key_id": "string", "login_session_id": 0, "revoked_at": "2024-01-01T00:00:00Z", "created_at": "2024-01-01T00:00:00Z", "updated_at": "2024-01-01T00:00:00Z" }, "access_key_display": "string" }403Forbidden
JSONCopied to clipboard{ "error": "string" }
Revoke an access key
DELETE
/api/v0/users/access_keys/{uuid}- Path parameters:
- Example request:
- BashCopied to clipboard
curl https://app.cloudcannon.com/api/v0/users/access_keys/{uuid} \ -X DELETE \ -H "X-API-KEY: <your-api-key>" - Responses:
204No Content
403Forbidden
JSONCopied to clipboard{ "error": "string" }404Not Found
JSONCopied to clipboard{ "error": "string" }
Redirect to avatar
GET
/api/v0/users/avatar- Query parameters:
Avatar size in pixels
- Example request:
- BashCopied to clipboard
curl https://app.cloudcannon.com/api/v0/users/avatar \ -H "X-API-KEY: <your-api-key>" - Responses:
302Redirect
403Forbidden
JSONCopied to clipboard{ "error": "string" }
List the current user's pending organization invites
GET
/api/v0/users/invites- Example request:
- BashCopied to clipboard
curl https://app.cloudcannon.com/api/v0/users/invites \ -H "X-API-KEY: <your-api-key>" - Responses:
200OK
JSONCopied to clipboard[ { "uuid": "00000000-0000-0000-0000-000000000000", "id": 0, "name": "string", "brand_color": "string", "brand_logo": "string", "white_label_logo": "string", "invited_at": "2024-01-01T00:00:00Z" } ]403Forbidden
JSONCopied to clipboard{ "error": "string" }
Accept pending organization invites
POST
/api/v0/users/invites/accept- Query parameters:
- Example request:
- BashCopied to clipboard
curl https://app.cloudcannon.com/api/v0/users/invites/accept \ -X POST \ -H "X-API-KEY: <your-api-key>" - Responses:
204No Content
403Forbidden
JSONCopied to clipboard{ "error": "string" }422Unprocessable
JSONCopied to clipboard{ "errors": {} }
Decline pending organization invites
DELETE
/api/v0/users/invites/decline- Query parameters:
- Example request:
- BashCopied to clipboard
curl https://app.cloudcannon.com/api/v0/users/invites/decline \ -X DELETE \ -H "X-API-KEY: <your-api-key>" - Responses:
204No Content
403Forbidden
JSONCopied to clipboard{ "error": "string" }422Unprocessable
JSONCopied to clipboard{ "errors": {} }