# PerfectWorks ## API Docs - Organizations [Register new organization](https://docs.perfectworks.io/register-new-organization-20386490e0.md): Register a new organization. This endpoint is used after Firebase authentication - Organizations [List user's organizations](https://docs.perfectworks.io/list-users-organizations-18880860e0.md): Get organizations associated with the authenticated user. Returns a paginated - Organizations [Get current organization details](https://docs.perfectworks.io/get-current-organization-details-18880861e0.md): Get current authenticated organization information. Returns detailed information - Organizations [Update organization profile](https://docs.perfectworks.io/update-organization-profile-20386491e0.md): Update current authenticated organization profile. Allows updating organization - Organizations [Get organization statistics](https://docs.perfectworks.io/get-organization-statistics-18880863e0.md): Get organization statistics including token usage, file counts, and member counts. - Organizations [Get organization by slug (public)](https://docs.perfectworks.io/get-organization-by-slug-public-18880864e0.md): Get public organization information by slug. This endpoint provides limited - Organizations [Soft delete organization](https://docs.perfectworks.io/soft-delete-organization-20386492e0.md): Soft delete the authenticated organization. The organization will be marked - Organizations [Permanently delete organization](https://docs.perfectworks.io/permanently-delete-organization-20386493e0.md): Permanently delete the authenticated organization. This action is irreversible - Files [Generate signed upload URL](https://docs.perfectworks.io/generate-signed-upload-url-18880868e0.md): Generate a signed upload URL for file upload - Files [Create file record](https://docs.perfectworks.io/create-file-record-18880869e0.md): Create a file record after successful upload - Files [List files](https://docs.perfectworks.io/list-files-18880870e0.md): Get all files for the authenticated user/organization - Files [Get file by ID](https://docs.perfectworks.io/get-file-by-id-18880871e0.md): Get file details by ID - Files [Update file](https://docs.perfectworks.io/update-file-18880872e0.md): Update file information - Files [Delete file](https://docs.perfectworks.io/delete-file-18880873e0.md): Delete file (soft delete) - Files [Generate download URL](https://docs.perfectworks.io/generate-download-url-18880874e0.md): Generate signed download URL for file - Files [Analyze file](https://docs.perfectworks.io/analyze-file-18880875e0.md): Analyze file for accessibility and quality issues - Files [Process file for accessibility](https://docs.perfectworks.io/process-file-for-accessibility-18880876e0.md): Process file for accessibility improvements - Files [Convert file to different format](https://docs.perfectworks.io/convert-file-to-different-format-20553983e0.md): Convert file to different format - API Keys [Create a new API key](https://docs.perfectworks.io/create-a-new-api-key-20386494e0.md): Generates a new API key for the authenticated user. The API key is automatically - API Keys [List user's API keys](https://docs.perfectworks.io/list-users-api-keys-18880878e0.md): Returns a paginated list of API keys owned by the authenticated user. - API Keys [Get API key by ID](https://docs.perfectworks.io/get-api-key-by-id-18880879e0.md): Returns details of a specific API key owned by the authenticated user. - API Keys [Update API key description](https://docs.perfectworks.io/update-api-key-description-18880880e0.md): Updates the description of an existing API key. Only the description field - API Keys [Delete API key](https://docs.perfectworks.io/delete-api-key-20386495e0.md): Permanently deletes an API key. Once deleted, the API key can no longer be used - Referrers [Join referral program](https://docs.perfectworks.io/join-referral-program-20386497e0.md): Register organization as a referrer in the referral program. - Referrers [Get referrer profile](https://docs.perfectworks.io/get-referrer-profile-20386498e0.md): Get the current organization's referrer profile information. - Referrers [Get referrer dashboard](https://docs.perfectworks.io/get-referrer-dashboard-20386499e0.md): Get comprehensive dashboard statistics for the current organization's referrer account. - Referrer Transactions [List referrer's transactions](https://docs.perfectworks.io/list-referrers-transactions-20386500e0.md): Get all referrer transactions with pagination and filtering. - Referrer Transactions [Get transaction details](https://docs.perfectworks.io/get-transaction-details-20386501e0.md): Get a specific referrer transaction by ID. - Referrer Transactions [Request withdrawal from pending earnings](https://docs.perfectworks.io/request-withdrawal-from-pending-earnings-20386502e0.md): Create a withdrawal request from pending earnings. - Referrer Campaigns [Create referral campaign](https://docs.perfectworks.io/create-referral-campaign-20386503e0.md): Create a new referral campaign for the authenticated organization. - Referrer Campaigns [List referrer's campaigns](https://docs.perfectworks.io/list-referrers-campaigns-20386504e0.md): Get a paginated list of all campaigns for the authenticated organization. - Referrer Campaigns [Get campaign details](https://docs.perfectworks.io/get-campaign-details-20386505e0.md): Get detailed information about a specific campaign by its ID. - Referrer Campaigns [Update campaign](https://docs.perfectworks.io/update-campaign-20386506e0.md): Update an existing campaign's name and/or description. - Referrer Campaigns [End campaign](https://docs.perfectworks.io/end-campaign-20386507e0.md): End a campaign by setting its status to INACTIVE (soft delete). - Referrer Campaigns [Get campaign analytics](https://docs.perfectworks.io/get-campaign-analytics-20386508e0.md): Get comprehensive analytics data for a specific campaign including overview statistics, - Referral Links [Track referral click and redirect](https://docs.perfectworks.io/track-referral-click-and-redirect-20386509e0.md): Handle referral link click and redirect to signup page - Payments [Create a checkout session](https://docs.perfectworks.io/create-a-checkout-session-20386510e0.md): Create a new Stripe checkout session for payment processing. - Payments [Get checkout session details](https://docs.perfectworks.io/get-checkout-session-details-20386511e0.md): Retrieve checkout session details by session ID. - Payments [Get available products](https://docs.perfectworks.io/get-available-products-20386512e0.md): Get available products for purchase. - Users [Register new client user](https://docs.perfectworks.io/register-new-client-user-20386775e0.md): Register a new client user. This endpoint creates a new user account - Users [Register system user](https://docs.perfectworks.io/register-system-user-20386776e0.md): Register a system user. This endpoint is only accessible via Organization API keys - Users [Get user profile](https://docs.perfectworks.io/get-user-profile-20386777e0.md): Get the current authenticated user's profile information. - Users [Update user profile](https://docs.perfectworks.io/update-user-profile-20386778e0.md): Update the current authenticated user's profile information. - Users [Soft delete user account](https://docs.perfectworks.io/soft-delete-user-account-20386779e0.md): Soft delete the current authenticated user's account. This marks the user - Users [Permanently delete user account](https://docs.perfectworks.io/permanently-delete-user-account-20386780e0.md): Permanently delete the current authenticated user's account. This action - Users [Switch active organization](https://docs.perfectworks.io/switch-active-organization-20386781e0.md): Switch the user's active organization. The user must be a member of the - Users [Get current active organization](https://docs.perfectworks.io/get-current-active-organization-20386782e0.md): Get the user's current active organization information including their role - Token Transactions [List organization token transactions](https://docs.perfectworks.io/list-organization-token-transactions-20386783e0.md): Get all token transactions for the organization with pagination and filtering. - Token Transactions [Get organization token balance](https://docs.perfectworks.io/get-organization-token-balance-20386784e0.md): Get current token balance for the organization. - Token Transactions [Get token transaction by ID](https://docs.perfectworks.io/get-token-transaction-by-id-20386785e0.md): Get token transaction details by ID. - Organization Members [Invite new member to organization](https://docs.perfectworks.io/invite-new-member-to-organization-20386786e0.md): Invite a new member to the organization - Organization Members [List organization members](https://docs.perfectworks.io/list-organization-members-20386787e0.md): Get all organization members with pagination and filtering - Organization Members [Get user's pending organization invitations](https://docs.perfectworks.io/get-users-pending-organization-invitations-20386788e0.md): Get pending organization invitations for the authenticated user - Organization Members [Get member details](https://docs.perfectworks.io/get-member-details-20386789e0.md): Get organization member details by ID - Organization Members [Remove organization member](https://docs.perfectworks.io/remove-organization-member-20386790e0.md): Remove a member from the organization - Organization Members [Join organization with pending invitation](https://docs.perfectworks.io/join-organization-with-pending-invitation-20386791e0.md): Join an organization by accepting a pending invitation