Appearance
Admin API routes ​
Overview ​
routes/api.php is the API behind Collage Admin (the main DAM app). RouteServiceProvider mounts it with prefix api and the api middleware group, and every route in the file sits under v1, so all paths start with /api/v1. It defines 268 routes.
Three top-level groups split the file:
- Public group (
Route::prefix('v1')): login, password reset, social/passkey/SSO entry points, external-user OTP login, public share links, file-preview hooks and checkout-time subscription calls. Only theapigroup middleware applies (LogApiRequests,throttle:api= 600/min per user or IP,SubstituteBindings). - Token verification group (
Route::prefix('v1'),auth.user-or-external,throttle:verify-token, andwithoutMiddleware('throttle:api')): one route,GET /api/v1/auth/verify, added in commit6ac8a4f. It accepts both user and external upload user tokens and has its own rate limit. See Token verification. - Authenticated group (
prefix v1,throttle:600,1, thenauth:api): everything else.auth:apiis the Passport guard over theusersprovider (App\Models\User). Most routes then addcheckUserWithWS, and thedigital-assetsblock also addssetEtagandIfNoneMatchEtag. See Middleware.
How to read the tables:
- Middleware lists only what a route adds on top of the stack named above its table (
-means nothing extra). Theapigroup itself is left out. - Notes gives the purpose (read from the controller method) and the fields the method marks
requiredin itsValidator::makeor$request->validatecall. A route with no required list either validates nothing up front or checks fields by hand in the method body. - Most methods resolve the workspace from
url_workspace_idorworkspace_id(the workspace url_slug) and returnRestResponseJSON:status,code,message,data,error. A missing workspace returns a warningWorkspace is not available.
Controllers live under App\Http\Controllers\Api\v1. AuthController appears twice in this file, so the support one is shown as Support\AuthController. See Controllers for the full list and the feature pages (for example Assets, Folders, Collages, Portals) for how these routes fit together.
Things to know before calling these routes
POST /api/v1/registerandGET /api/v1/logout-all-userwere removed from the route file (PR #453). Theregister,verifyEmailandlogoutAllLoginUsermethods are still inAuth\AuthControllerbut no route reaches them.registernow throwsFRONTEND_URL is not configured.(returned throughRestResponse::error) before creating the account whenconstant.FRONTEND_URLis empty, because both links in the verification email are built from it.- The three
GET /api/v1/filepreviews/...closures run Artisan commands anddd()the output, with no auth. POST /api/v1/subscription/update-subscription-datepoints atSubscriptionController@updateSubscriptionDate, which does not exist. Calling it fails.
Social, passkey and SSO login ​
Middleware: api. Routes: 9.
Public sign-in entry points. social middleware only wraps the two social login routes. auth/social/exchange sits outside that group with its own throttle:20,1 (20 calls per minute).
| Method | Path | Controller@method | Middleware | Notes |
|---|---|---|---|---|
| GET | /api/v1/auth/login/{service} | SocialAuthController@redirect | social | Redirect to the social login provider named by {service}. |
| GET | /api/v1/auth/login/{service}/callback | SocialAuthController@callback | social | Social login callback. Rejects a callback whose state does not match the social_login_state cookie set by the redirect; on success finds or creates the user and redirects to /social-login?login_code=<code> (never the access token). |
| POST | /api/v1/auth/social/exchange | SocialAuthController@exchangeLoginCode | throttle:20,1 | Swaps the one-time login_code (valid 120 s, single use) for { "access_token": "..." }. Unknown, used or expired code: 422 This sign-in link is invalid or has expired. Please try again. |
| POST | /api/v1/passkeys/login/options | PasskeyController@loginOptions | - | Passkey login step 1: returns WebAuthn request options (challenge). FormRequest AssertionRequest. |
| POST | /api/v1/passkeys/login | PasskeyController@login | - | Passkey login step 2: verifies the signed challenge and issues a Passport token. Required: id, rawId, response.authenticatorData, response.clientDataJSON, response.signature, type. |
| POST | /api/v1/auth/sso/resolve | SsoAuthController@resolve | - | Looks up the company (SAML) login for an email address. Required: email. |
| GET | /api/v1/auth/sso/{url_slug}/redirect | SsoAuthController@redirect | - | Starts the SAML sign-in for the workspace {url_slug}. |
| POST | /api/v1/auth/sso/{url_slug}/acs | SsoAuthController@acs | - | SAML assertion consumer service (IdP posts the response here). |
| GET | /api/v1/auth/sso/{url_slug}/metadata | SsoAuthController@metadata | - | Returns the service-provider SAML metadata for the workspace. |
Password auth and account recovery ​
Middleware: api. Routes: 7.
| Method | Path | Controller@method | Middleware | Notes |
|---|---|---|---|---|
| POST | /api/v1/generate-common-password | Auth\AuthController@generateCommonPassword | - | Sets a password from a PasswordSetupToken (<user id>.<expires>.<hmac>, 7 days, stops working once a password is set) and returns an access token. Required: token, password. Bad token: This password link is invalid or has expired. |
| GET | /api/v1/check-branding | Auth\AuthController@checkBranding | - | Returns workspace branding for the request origin/domain. |
| POST | /api/v1/login | Auth\AuthController@login | - | Email/password login; returns an access token. |
| POST | /api/v1/forgot-password | Auth\AuthController@sendPasswordResetLinkEmail | - | Emails a password-reset link. The link host is FRONTEND_URL, or the workspace's verified custom domain (domain_status = verified) when the request matched one; Origin/Referer are no longer used. Deletes only the user's earlier main-app tokens (not dlr- portal tokens). |
| POST | /api/v1/reset-password | Auth\AuthController@resetPassword | - | Sets a new password from a reset link. Token must be younger than 60 minutes (PasswordVerificationEmail::EXPIRES_MINUTES) and must not start with dlr- (portal tokens). |
| POST | /api/v1/generate-password | Auth\AuthController@generateNewUserPassword | - | Sets the password for an invited user. |
| POST | /api/v1/reset-password-details | Auth\AuthController@getResetPwdUserDetails | - | Returns user details for a reset link. Same 60-minute and non-dlr- rules as reset-password. |
Support login ​
Middleware: api. Routes: 1.
| Method | Path | Controller@method | Middleware | Notes |
|---|---|---|---|---|
| POST | /api/v1/support-login | Support\AuthController@supportLogin | - | Support-staff login into a workspace; returns an access token. A null or empty PIN is rejected with 422 Incorrect user OR password. |
External users (public) ​
Middleware: api. Routes: 8.
External (upload-only) users sign in with an OTP. The routes inside check.external need an external-user guard token; check.external returns 401 without one and 403 for inactive accounts.
| Method | Path | Controller@method | Middleware | Notes |
|---|---|---|---|---|
| GET | /api/v1/external-brand | ExternalUserController@externalBrand | - | Returns workspace branding for the external-user login page. Required: workspace_id. |
| POST | /api/v1/external-login | ExternalUserController@externalUserLogin | - | External user login step 1: emails an OTP. Required: workspace_id, email. |
| POST | /api/v1/external-login-verify | ExternalUserController@externalUserLoginVerify | - | External user login step 2: verifies the OTP and issues a token. Required: workspace_id, email, otp. The OTP is compared as a string (strict); five wrong tries cancel the code (Too many incorrect attempts. Please request a new OTP.). |
| GET | /api/v1/check-external-access | ExternalUserController@checkExternalAccess | check.external | Checks the external user token, workspace and origin domain. |
| GET | /api/v1/get-external-user | ExternalUserController@getLoginExternalUser | check.external | Returns the logged-in external user. |
| POST | /api/v1/external-upload | ExternalUserController@externalUserUpload | check.external | Uploads an asset as an external user. Required: url_workspace_id, display_file, display_file_name, file_extension, file_name, file_size. |
| POST | /api/v1/submit-request | ExternalUserController@externalUserUploadRequestSubmit | check.external | Submits an external upload request and notifies the workspace. Required: workspace_id, asset_count. |
| POST | /api/v1/external-logout | ExternalUserController@externalUserLogout | check.external | Revokes the external user token. |
| POST | /api/v1/upload-zip-preview | ExternalUserController@uploadZipPreview | check.external | Stores a preview image as the thumbnail of a ZIP the external user uploaded. Required: compress_file, asset_id; optional workspace_id must equal the user's workspace url_slug. The asset must be in that workspace, have user_id = the external user and is_external_upload = 1. Success message: Zip thumbnail file uploading successfully. See Assets: ZIP preview thumbnail. |
Invitations and time zones ​
Middleware: api. Routes: 2.
| Method | Path | Controller@method | Middleware | Notes |
|---|---|---|---|---|
| POST | /api/v1/get-invitation-details | WorkspaceController@getInvitationUserDetails | - | Returns invitation details for an invite link. |
| GET | /api/v1/all-time-zone | WorkspaceController@getAllTimeZone | - | Lists time zones. |
Public share links ​
Middleware: api. Routes: 8.
Called by the public share page. No auth; access is controlled by the share link itself (password, expiry).
| Method | Path | Controller@method | Middleware | Notes |
|---|---|---|---|---|
| POST | /api/v1/show-share-assets | ShareAssetsController@showShareAssets | - | Opens a public share link and returns its assets/folders. |
| POST | /api/v1/view-share-files-with-category | ShareAssetsController@getSharedCategoryAndFiles | - | Lists assets inside a folder of a share link. Required: category_id, share_id. |
| POST | /api/v1/get-count | ShareAssetsController@getCategoryAssetCount | - | Folder and asset counts for a folder in a share link. Required: category_id, share_id. |
| POST | /api/v1/authentication-check | ShareAssetsController@checkShareUrlPassword | - | Checks the password of a protected share link. |
| POST | /api/v1/share-link-view | ShareAssetsController@shareLinkView | - | Records a view of a share link. Required: id. |
| POST | /api/v1/search-share-data | ShareAssetsController@searchShareData | - | Searches inside a share link. Required: type, status, search. |
| POST | /api/v1/transaction-activity | TransactionActivityController@addShareTransactionActivityEncode | - | Logs an activity event (view/download) from a public share link. |
| POST | /api/v1/share-zip-data | ZipLinkController@generateAdminShareZipData | - | Builds the ZIP download manifest for a public share link. Required: workspace_id. Also needs share_id (an active, unexpired share of this workspace with downloads allowed) and, for a password share, the password as access_token. assets_ids, category_ids and collection_ids must be positive integers inside the share (an asset counts when shared directly, in a shared folder or in a shared Collage). 403 This link is no longer active. It may have expired or been revoked. or Share URL is password protected. |
File previews ​
Middleware: api. Routes: 4.
Prefix filepreviews. The three GET routes are inline closures that run Artisan commands; they have no auth.
| Method | Path | Controller@method | Middleware | Notes |
|---|---|---|---|---|
| POST | /api/v1/filepreviews/webhook | WebhookController@filePreviewWebhook | - | Webhook receiver for file-preview processing results. |
| GET | /api/v1/filepreviews/status/{workspace_id} | Closure | - | Runs artisan filepreview:status --workspace={workspace_id} and dumps the output with dd(). No auth. |
| GET | /api/v1/filepreviews/generate/{workspace_id} | Closure | - | Runs artisan filepreview:generate --workspace={workspace_id} and dumps the output. No auth. |
| GET | /api/v1/filepreviews/generate/video/{workspace_id} | Closure | - | Runs artisan videopreview:generate (ignores {workspace_id}) and dumps the output. No auth. |
Subscription (public) ​
Middleware: api. Routes: 9.
Prefix subscription. Called during checkout and from Stripe-driven flows; no auth.
| Method | Path | Controller@method | Middleware | Notes |
|---|---|---|---|---|
| GET | /api/v1/subscription/{subscription_name}/detail | SubscriptionController@subscriptionDetail | - | Returns details for the subscription plan {subscription_name}. |
| POST | /api/v1/subscription/inquiry/{id}/activation | SubscriptionController@subscriptionActivation | - | Activates an inquiry after Stripe payment. Required: stripe_customer_id, stripe_subscription_id. |
| POST | /api/v1/subscription/inquiry/payment-intent | SubscriptionController@updateInquiry | - | Updates an inquiry with Stripe payment-intent data. Required: stripe_customer_id, stripe_payment_id, payment_type, payment_status. |
| POST | /api/v1/subscription/change-user-plan | SubscriptionController@changeUserPlan | - | Changes the workspace plan. |
| POST | /api/v1/subscription/update-event-sent | SubscriptionController@updateEventSentFalse | - | Resets the subscription user event-sent flag. |
| POST | /api/v1/subscription/downgrade-plan | SubscriptionController@downgradePlan | - | Downgrades the subscription plan. |
| POST | /api/v1/subscription/update-subscription-date | SubscriptionController@updateSubscriptionDate | - | Broken: method does not exist in the controller. |
| POST | /api/v1/subscription/add-payment-method | SubscriptionController@addPaymentMethod | - | Adds a Stripe payment method. |
| POST | /api/v1/subscription/buy | SubscriptionController@buyAddon | - | Buys a subscription add-on. Required: subscription_addon_id, subscription_user_id. |
Token verification ​
Middleware: api (without throttle:api), auth.user-or-external, throttle:verify-token. Routes: 1.
Added in commit 6ac8a4f. A small token check for server-side callers: the Nuxt server routes of Collage Admin and Brand Portal call it on every S3 upload part and Typesense search instead of the heavier GET /api/v1/user (controller docblock). The controller docblock says never to add profile, settings, branding or other fields here.
| Method | Path | Controller@method | Middleware | Notes |
|---|---|---|---|---|
| GET | /api/v1/auth/verify | Auth\TokenVerifyController@verify | auth.user-or-external, throttle:verify-token | Returns user_id, is_external and the workspaces the token may act in, each with id (url_slug), workspace_unique_id (numeric id) and dam_role. Optional query origin_url. Header Cache-Control: no-store, private. |
How the request is authenticated ​
auth.user-or-external (AuthenticateUserOrExternalToken) picks exactly one Passport guard from the token's name, then lets that guard do the real signature, expiry and revocation check. Every failure returns 401 {"error": "Unauthenticated."}.
Why not auth:api,external-user: all tokens come from the same personal access client, whose provider column is NULL, so Passport lets any guard accept any token and resolves its user_id in that guard's own table. An external user token with user_id = 7 given to the api guard would authenticate as users.id = 7, a different person. The token name set at createToken() is the only per-token signal of which table it belongs to. Portal tokens (DAM Api Token) and External API tokens (External Api Token) are rejected.
The jti is read from the JWT payload without verifying the signature; it only selects the guard. The lookup runs on Passport's connection (mysql_primary, see Architecture).
Response rules ​
| Caller | workspaces |
|---|---|
User token (is_external: false) | Active memberships (workspace_users.workspace_status = 1), ordered by workspace_users.id, one entry per workspace (the first role_user row wins when there are several, same as /user) |
External upload user (is_external: true) | The user's single workspace_id, with dam_role: null; empty when the workspace row is missing |
dam_roleisroles.slugof the user'srole_userrow for module2(DAM). It isnullwhen there is no such row or the DAM module is not active for the workspace (module_workspaces.is_active = 1).- Domain filtering is the same as
/user:getWorkspaceIdsByDomain()readsOrigin, thenReferer, thenorigin_url, thenurl, thenFRONTEND_URL. A verified custom domain limits the list to its workspaces; the main app domain (FRONTEND_URL) means no filter. Server callers should forward the browserOriginor passorigin_url. For an external user, a filter that does not include their workspace returns[]. - Rate limit
verify-token: 1200 requests per minute keyed bysha1of the bearer token (or the IP when there is none), separate from the 600/minapilimiter.
Example response (placeholders):
json
{
"user_id": 123,
"is_external": false,
"workspaces": [
{ "id": "acme", "workspace_unique_id": 45, "dam_role": "admin" }
]
}Session and account ​
Middleware: api, throttle:600,1, auth:api. Routes: 13.
Everything below sits in Route::group([prefix v1, throttle:600,1]) then auth:api.
| Method | Path | Controller@method | Middleware | Notes |
|---|---|---|---|---|
| GET | /api/v1/check-token | Closure | - | Returns an empty 200 response (response()->noContent(200)) when the token is valid. |
| GET | /api/v1/check-workspace-access | Auth\AuthController@checkWorkspaceAccess | - | Checks the user can access the workspace for the request origin. |
| POST | /api/v1/terminate-token | Support\AuthController@terminateToken | - | Support: ends one support session token. |
| POST | /api/v1/terminate-all-token | Support\AuthController@terminateAllToken | - | Support: ends all support session tokens. |
| GET | /api/v1/user | Auth\AuthController@getUser | - | Returns the logged-in user with workspaces, modules and subscription. Each accessibleWorkspaces entry carries company_logo and favicon (the workspace favicon, null when unset). |
| POST | /api/v1/get-branding | Auth\AuthController@getBranding | - | Returns workspace branding. |
| GET | /api/v1/user-badges-count | Auth\AuthController@getUserNotificationBadgesCount | - | Unread notification and announcement badge counts. |
| POST | /api/v1/logout | Auth\AuthController@logout | - | Revokes the current token. |
| GET | /api/v1/passkeys | PasskeyController@index | - | Lists the user's passkeys. |
| POST | /api/v1/passkeys/register/options | PasskeyController@registerOptions | throttle:reauth | Passkey enrollment step 1: WebAuthn creation options. FormRequest AttestationRequest. Re-authenticates first: password for accounts with one, otherwise an access token issued within webauthn.reauth.token_max_age_minutes (default 10). 422 Current password does not match. or Please sign in again to manage passkeys. |
| POST | /api/v1/passkeys/register | PasskeyController@register | - | Passkey enrollment step 2: verifies and stores the passkey (challenge must have been issued to this same user). FormRequest AttestedRequest. |
| DELETE | /api/v1/passkeys/{id} | PasskeyController@destroy | throttle:reauth | Removes one of the user's passkeys. Same re-authentication as register/options. |
| POST | /api/v1/create-workspace | WorkspaceController@createWorkspace | - | Creates a workspace. |
User profile ​
Middleware: api, throttle:600,1, auth:api. Routes: 8.
Prefix user.
| Method | Path | Controller@method | Middleware | Notes |
|---|---|---|---|---|
| POST | /api/v1/user/auth-change-password | UsersController@authChangePassword | throttle:reauth | Changes the logged-in user's password. |
| GET | /api/v1/user/view-profile | UsersController@viewUserProfile | - | Returns the logged-in user's profile. |
| POST | /api/v1/user/update-profile | UsersController@updateUserProfile | - | Updates the logged-in user's profile. |
| POST | /api/v1/user/change-profile-image | UsersController@changeProfileImage | - | Uploads a profile image. |
| POST | /api/v1/user/workspace-active-user | UsersController@activeWorkspaceUser | - | Activates a user in a workspace. |
| GET | /api/v1/user/role-module | UsersController@userModuleAndRole | - | Returns the user's modules and roles in the workspace. |
| POST | /api/v1/user/save-pin | UsersController@saveSupportPin | - | Generates a support access PIN. |
| GET | /api/v1/user/remove-pin | UsersController@removeGeneratedPin | - | Removes the support PIN and support sessions. |
Workspace settings ​
Middleware: api, throttle:600,1, auth:api, checkUserWithWS. Routes: 11.
checkUserWithWS resolves url_workspace_id (workspace url_slug) and checks the user belongs to it.
| Method | Path | Controller@method | Middleware | Notes |
|---|---|---|---|---|
| GET | /api/v1/view-workspace | WorkspaceController@viewWorkSpaceDetails | - | Returns workspace details. |
| POST | /api/v1/update-domain | WorkspaceController@updateDomain | - | Sets the workspace custom domain. Required: workspace_id, url. |
| POST | /api/v1/verify-domain | WorkspaceController@verifyDomain | - | Verifies the custom domain DNS. Required: workspace_id. |
| POST | /api/v1/update-workspace-settings | WorkspaceController@updateWorkspace | - | Updates workspace settings. |
| POST | /api/v1/change-workspace-logo | WorkspaceController@changeWorkSpaceLogo | - | Uploads the workspace logo. |
| POST | /api/v1/change-workspace-favicon | WorkspaceController@changeWorkSpaceFavicon | - | Uploads the workspace favicon. |
| POST | /api/v1/update-workspace-branding | WorkspaceController@updateWorkSpaceBranding | - | Updates workspace (and portal) branding. |
| POST | /api/v1/resend-invitations | WorkspaceController@resendInvitations | - | Resends pending user invitations. |
| POST | /api/v1/update-workspace-dealership-no | WorkspaceController@updateWorkspaceDealershipNo | - | Updates the workspace dealership number. |
| GET | /api/v1/get-workspace-user-data | WorkspaceController@getWorkspaceUserData | - | Lists workspace users with roles. |
| POST | /api/v1/update-workspace-owner | WorkspaceController@updateWorkspaceOwner | - | Transfers workspace ownership. Only the current owner may call it (403), the workspace must be the one checkUserWithWS verified, and the new owner must be an active member. |
SSO settings ​
Middleware: api, throttle:600,1, auth:api, checkUserWithWS. Routes: 8.
Prefix sso. Extra middleware: checkWorkspaceOwner, checkSsoAllowed.
| Method | Path | Controller@method | Middleware | Notes |
|---|---|---|---|---|
| GET | /api/v1/sso/connection | SsoSettingsController@show | checkWorkspaceOwner, checkSsoAllowed | Returns the SSO connection settings. |
| POST | /api/v1/sso/connection | SsoSettingsController@update | checkWorkspaceOwner, checkSsoAllowed | Saves the SSO connection settings. allowed_domains replaces the domain list: new names start pending, missing names are deleted. A public mailbox domain (for example gmail.com) returns 422. Turning enabled on needs at least one verified domain still in the list (422 Verify at least one allowed email domain before enabling company login.). |
| POST | /api/v1/sso/sync | SsoSettingsController@sync | checkWorkspaceOwner, checkSsoAllowed | Starts a background sync of IdP metadata. Required: metadata_url. |
| POST | /api/v1/sso/test | SsoSettingsController@test | checkWorkspaceOwner, checkSsoAllowed | Tests the SSO connection. |
| GET | /api/v1/sso/activity | SsoSettingsController@activity | checkWorkspaceOwner, checkSsoAllowed | Lists SSO sign-in activity, newest first; per_page 10-100 (default 25); support on/off rows excluded. |
| POST | /api/v1/sso/domains | SsoSettingsController@addDomain | checkWorkspaceOwner, checkSsoAllowed | Adds one allowed email domain as pending with a new TXT token. Required: domain (max 255). Creates the connection if none exists. Returns { domain, connection }. |
| POST | /api/v1/sso/domains/verify | SsoSettingsController@verifyDomain | checkWorkspaceOwner, checkSsoAllowed, throttle:10,1,sso-domain-verify | Looks up the DNS TXT record and marks the domain verified on a match, failed (with last_error) otherwise. Required: domain. Returns { ok, message, domain, connection }. |
| POST | /api/v1/sso/domains/remove | SsoSettingsController@removeDomain | checkWorkspaceOwner, checkSsoAllowed | Deletes the domain. Refuses the last verified domain while company login is on (422). Required: domain. |
Users ​
Middleware: api, throttle:600,1, auth:api, checkUserWithWS. Routes: 12.
Prefix user.
| Method | Path | Controller@method | Middleware | Notes |
|---|---|---|---|---|
| POST | /api/v1/user/add-new-user | UsersController@addNewUser | - | Adds a workspace user and sends an invitation. |
| POST | /api/v1/user/list | UsersController@userList | - | Paginated workspace user list. |
| GET | /api/v1/user/dam-admin-count | UsersController@getDamAdminCount | - | Counts DAM admins in the workspace. |
| POST | /api/v1/user/details | UsersController@getUserDetails | - | Returns one workspace user. |
| POST | /api/v1/user/edit-user | UsersController@editUserDetails | - | Updates a workspace user, role and permissions. Before writing, the caller must administer the target user, and every role or membership change must be in a workspace and module where the caller is Admin or Super Admin; otherwise 403 You are not authorised to change this user's access. Revokes all of the user's tokens when roles or workspace memberships changed. |
| POST | /api/v1/user/delete-user | UsersController@deleteUser | - | Deactivates a workspace user and revokes all of their tokens. workspace_id must equal url_workspace_id and the caller must be Admin or Super Admin there (403); the user must be a member of that workspace. |
| GET | /api/v1/user/roles-permissions | UsersController@getRolesPermissions | - | Lists roles and permissions for the workspace. |
| POST | /api/v1/user/check-email | UsersController@checkUserEmail | - | Checks whether an email is already a user. |
| POST | /api/v1/user/invite-user | UsersController@sendInvitationToExistUser | - | Invites an existing user to the workspace. |
| POST | /api/v1/user/revoke | UsersController@revokePendingUser | - | Revokes a pending invitation. |
| POST | /api/v1/user/active-user | UsersController@activeUser | - | Activates an invited user and sets the password. Required: workspace_id, user_id, password, name. Same admin check as delete-user; the invitation must be for this workspace, and a user who already has a password and is verified gets 403 This user has already set up their account. |
| POST | /api/v1/user/user-change-password | UsersController@userChangePassword | - | Admin changes another user's password. The target must be an active member of the workspace (403 otherwise). |
External user management ​
Middleware: api, throttle:600,1, auth:api, checkUserWithWS. Routes: 3.
Prefix external-user.
| Method | Path | Controller@method | Middleware | Notes |
|---|---|---|---|---|
| GET | /api/v1/external-user/get | ExternalUserController@getExternalUser | - | Lists external users of the workspace. Required: workspace_id. |
| POST | /api/v1/external-user/add | ExternalUserController@addExternalUser | - | Adds an external user. Required: workspace_id, name, email. |
| POST | /api/v1/external-user/edit | ExternalUserController@editExternalUser | - | Updates an external user. Required: workspace_id, id. |
Announcements ​
Middleware: api, throttle:600,1, auth:api, checkUserWithWS. Routes: 9.
Prefix announcement.
| Method | Path | Controller@method | Middleware | Notes |
|---|---|---|---|---|
| GET | /api/v1/announcement/users | AnnouncementController@getAnnouncementUsers | - | Lists users who can receive announcements. |
| POST | /api/v1/announcement/add | AnnouncementController@addNewAnnouncement | - | Creates an announcement. Required: url_workspace_id, description, publish_date, title. A post that is neither a draft nor scheduled gets published_at = now; drafts and scheduled posts get null until they go live. |
| POST | /api/v1/announcement/list | AnnouncementController@listAllAnnouncement | - | Lists announcements. Required: url_workspace_id, module_id. |
| POST | /api/v1/announcement/update | AnnouncementController@updateAnnouncement | - | Updates an announcement. Required: url_workspace_id, description, publish_date, title, announcement_id. Saving it as published keeps an existing published_at (or sets now); saving it as a draft or scheduled clears published_at. |
| GET | /api/v1/announcement/delete | AnnouncementController@deleteAnnouncement | - | Deletes an announcement. Required: url_workspace_id, announcement_id, module_id. |
| GET | /api/v1/announcement/notification-list | AnnouncementController@getUserAnnouncementNotificationList | - | Lists the user's announcement notifications. |
| POST | /api/v1/announcement/read-unread | AnnouncementController@readUnreadAnnouncement | - | Toggles read/unread on an announcement notification. |
| POST | /api/v1/announcement/read | AnnouncementController@readAnnouncement | - | Marks an announcement notification read. |
| POST | /api/v1/announcement/mark-all-read | AnnouncementController@markAllReadAnnouncement | - | Marks all announcement notifications read. |
Digital assets: app token ​
Middleware: api, throttle:600,1, auth:api, checkUserWithWS, setEtag, IfNoneMatchEtag. Routes: 2.
Prefix digital-assets with checkUserWithWS, setEtag, IfNoneMatchEtag. All remaining groups on this page except the last one share this stack.
| Method | Path | Controller@method | Middleware | Notes |
|---|---|---|---|---|
| GET | /api/v1/digital-assets/get-app-token | DashboardController@getThirdPartyAppToken | - | Returns the third-party app token for the workspace. |
| POST | /api/v1/digital-assets/update-app-token | DashboardController@updateAppToken | - | Updates the third-party app token. |
New dashboard ​
Middleware: api, throttle:600,1, auth:api, checkUserWithWS, setEtag, IfNoneMatchEtag. Routes: 4.
Prefix digital-assets/new-dashboard.
| Method | Path | Controller@method | Middleware | Notes |
|---|---|---|---|---|
| GET | /api/v1/digital-assets/new-dashboard/recently-uploaded-assets | NewDashboardController@getRecentUploadedAssets | - | Recently uploaded assets for the dashboard. Required: url_workspace_id. |
| GET | /api/v1/digital-assets/new-dashboard/recently-collection | NewDashboardController@getRecentlyCollection | - | Recently updated Collages for the dashboard. |
| GET | /api/v1/digital-assets/new-dashboard/recently-folders | NewDashboardController@getRecentlyFolders | - | Recently updated folders for the dashboard. |
| POST | /api/v1/digital-assets/new-dashboard/weekly-insights | NewDashboardController@getWeeklyInsights | - | Upload/view insights for a date range. Required: url_workspace_id, from_date, to_date, date_type. Days are read in the user's profile timezone (ResolvesViewerTimezone). |
Search ​
Middleware: api, throttle:600,1, auth:api, checkUserWithWS, setEtag, IfNoneMatchEtag. Routes: 4.
| Method | Path | Controller@method | Middleware | Notes |
|---|---|---|---|---|
| GET | /api/v1/digital-assets/get-search-data | SearchController@getSearchData | - | Global search (assets, tags). Required: url_workspace_id. |
| GET | /api/v1/digital-assets/inner-search-data | SearchController@getInnerSearchData | - | Filtered search within results. Required: url_workspace_id. |
| GET | /api/v1/digital-assets/recent-search | SearchController@getRecentData | - | Recent searches. |
| POST | /api/v1/digital-assets/recent-search | SearchController@addRecentData | - | Stores a recent search. |
Dashboard and share links ​
Middleware: api, throttle:600,1, auth:api, checkUserWithWS, setEtag, IfNoneMatchEtag. Routes: 7.
Prefix digital-assets/dashboard.
| Method | Path | Controller@method | Middleware | Notes |
|---|---|---|---|---|
| GET | /api/v1/digital-assets/dashboard/common-data | DashboardController@getAllCommonData | - | Dashboard common data (counts, types). |
| POST | /api/v1/digital-assets/dashboard/file-download-history | DashboardController@fileDownloadHistory | - | Records a download in history. |
| GET | /api/v1/digital-assets/dashboard/list-share-assets-url | ShareAssetsController@getShareAssetsListNew | - | Lists share links. Required: url_workspace_id, total_record, filter_by. active = not revoked and expires_at empty or in the future; expired = expires_at passed; revoked = is_active 0. Rows include expiration (date), expires_at (UTC instant) and expires_timezone (zone the date was picked in). |
| POST | /api/v1/digital-assets/dashboard/generate-share-assets-url | ShareAssetsController@generateShareAssetsURL | - | Creates a share link for assets/folders. An expiration date is stored with expires_at = 23:59:59 of that date in the creator's time zone (profile, else X-Timezone header, else app time zone) and that zone in expires_timezone. |
| POST | /api/v1/digital-assets/dashboard/delete-share-assets-url | ShareAssetsController@deleteShareURL | - | Deletes a share link. Required: url_workspace_id, share_url_id. |
| POST | /api/v1/digital-assets/dashboard/delete-multiple-share-assets-url | ShareAssetsController@deleteMultipleShareURL | - | Deletes several share links. Required: share_url_ids. |
| POST | /api/v1/digital-assets/dashboard/update-share-url | ShareAssetsController@updateShareUrl | - | Updates a share link. A changed expiration (or a row with no expires_at yet) recomputes expires_at and expires_timezone in the editor's zone; the same date keeps the creator's values; an empty expiration clears all three. |
Brand Portals (instance) ​
Middleware: api, throttle:600,1, auth:api, checkUserWithWS, setEtag, IfNoneMatchEtag. Routes: 17.
Prefix digital-assets/instance. "Instance" is the code name for a Brand Portal.
| Method | Path | Controller@method | Middleware | Notes |
|---|---|---|---|---|
| GET | /api/v1/digital-assets/instance/get | DamInstanceController@getInstance | - | Lists Brand Portals of the workspace. |
| GET | /api/v1/digital-assets/instance/instance-list | DamInstanceController@getInstanceList | - | Portal list (lightweight). |
| GET | /api/v1/digital-assets/instance/detail | DamInstanceController@getDetail | - | Returns one Brand Portal. |
| POST | /api/v1/digital-assets/instance/create | DamInstanceController@create | - | Creates a Brand Portal. Required: workspace_id, brand_name, url, is_domain. |
| POST | /api/v1/digital-assets/instance/update | DamInstanceController@update | - | Updates a Brand Portal. Required: id, workspace_id, brand_name, url, is_domain, is_active. |
| POST | /api/v1/digital-assets/instance/change-portal-visibility | DamInstanceController@changePortalVisibility | - | Switches a portal between public and private. Required: instance_id, public_portal. |
| PUT | /api/v1/digital-assets/instance/update-settings | DamInstanceController@updateSettings | - | Updates portal settings. Required: instance_id. |
| POST | /api/v1/digital-assets/instance/create-user | DamInstanceController@createUser | - | Creates portal users and sends invitations. |
| POST | /api/v1/digital-assets/instance/update-user | DamInstanceController@updateUser | - | Updates a portal user. Required: url_workspace_id, id, name. |
| GET | /api/v1/digital-assets/instance/get-user | DamInstanceController@getUserByInstanceId | - | Lists users of a portal. Required: url_workspace_id. |
| GET | /api/v1/digital-assets/instance/get-user-details | DamInstanceController@getUserDetail | - | Returns one portal user. Required: url_workspace_id, instance_id, dealer_user_id. |
| POST | /api/v1/digital-assets/instance/delete-restore-user | DamInstanceController@deleteOrRestoreUser | - | Soft-deletes or restores a portal user. |
| POST | /api/v1/digital-assets/instance/user-resend-invitation | DamInstanceController@resendUserInvitation | - | Resends a portal user invitation. |
| POST | /api/v1/digital-assets/instance/revoke-invitation | DamInstanceController@revokeUserInvitation | - | Revokes a portal user invitation. Required: workspace_id, user_id. |
| POST | /api/v1/digital-assets/instance/delete-user | DamInstanceController@deleteUser | - | Deletes a portal user (not yet activated). Required: workspace_id, user_id. |
| GET | /api/v1/digital-assets/instance/user-activity | DamInstanceController@userActivity | - | Activity log of a portal user. Required: url_workspace_id, user_id. |
| POST | /api/v1/digital-assets/instance/dealer-activate | DamInstanceController@activateDealerUser | - | Activates a portal user account and sets the password. Required: url_workspace_id, user_id, password. |
Portal banners ​
Middleware: api, throttle:600,1, auth:api, checkUserWithWS, setEtag, IfNoneMatchEtag. Routes: 5.
Prefix digital-assets/instance/banner.
| Method | Path | Controller@method | Middleware | Notes |
|---|---|---|---|---|
| GET | /api/v1/digital-assets/instance/banner/all | InstanceBannerController@getAll | - | Lists banners of a portal. Required: url_workspace_id, instance_id. |
| POST | /api/v1/digital-assets/instance/banner/create | InstanceBannerController@create | - | Uploads a portal banner. Required: instance_id, image, image_name. |
| POST | /api/v1/digital-assets/instance/banner/update | InstanceBannerController@update | - | Updates a portal banner. Required: instance_id, id, image_name. |
| POST | /api/v1/digital-assets/instance/banner/update-ordering | InstanceBannerController@updateOrdering | - | Reorders portal banners. |
| POST | /api/v1/digital-assets/instance/banner/delete | InstanceBannerController@delete | - | Deletes a portal banner. Required: workspace_id, id. |
Assets ​
Middleware: api, throttle:600,1, auth:api, checkUserWithWS, setEtag, IfNoneMatchEtag. Routes: 17.
| Method | Path | Controller@method | Middleware | Notes |
|---|---|---|---|---|
| GET | /api/v1/digital-assets/object-download | AssetController@getDownloadObject | - | Returns a download object (URL) for an asset or version. |
| POST | /api/v1/digital-assets/upload | AssetController@uploadFile | - | Registers an uploaded asset (file already in storage). Required: url_workspace_id, auto_tag, display_file, display_file_name, file_extension, file_name, file_size. |
| POST | /api/v1/digital-assets/upload-folder-notification | AssetController@sendUploadFolderNotification | - | Sends the folder-upload notification. |
| POST | /api/v1/digital-assets/upload-zipfile-preview | AssetController@uploadZipFilePreview | - | Uploads the preview thumbnail for a ZIP asset. |
| GET | /api/v1/digital-assets/get-recent-uploaded | AssetController@getRecentUploadedFiles | - | Recently uploaded assets (Uploaded staging area). |
| GET | /api/v1/digital-assets/get-external-uploaded | AssetController@getRecentExternalUploadedFiles | - | Recently uploaded assets from external users. |
| GET | /api/v1/digital-assets/total-recent | AssetController@getRecentUploadedCount | - | Count of recently uploaded assets. |
| POST | /api/v1/digital-assets/multiple-file-folder-move | AssetController@moveMultipleFileOrFolderToFolder | - | Moves assets and folders to a folder. Required: url_workspace_id, workspace_id. |
| POST | /api/v1/digital-assets/multiple-file-copy-to-multiple-folder | AssetController@copyMultipleFileToMultipleFolder | - | Copies assets into one or more folders. Required: url_workspace_id, category_id, digital_assets_id. |
| POST | /api/v1/digital-assets/duplicate-to-folders | AssetController@duplicateAssetsToFolders | - | Duplicates assets into one or more folders and chooses which metadata the copies keep (copy_mode everything (default), nothing or selected with copy_options). Required: url_workspace_id, category_id, digital_assets_id. Added in 9c9de48. See Assets: Duplicate. |
| POST | /api/v1/digital-assets/view-detail | AssetController@viewDetails | - | Asset detail. Required: url_workspace_id, digital_assets_id. |
| POST | /api/v1/digital-assets/view-asset-count | AssetController@viewAssetCount | - | Increments the asset view count. Required: asset_id. |
| POST | /api/v1/digital-assets/update-with-field | AssetController@updateAssetsWithField | - | Updates one field on an asset. Required: url_workspace_id, digital_assets_id, field_name. |
| POST | /api/v1/digital-assets/update-multiple-field | AssetController@updateMultipleAssetsWithField | - | Updates one field on several assets. |
| POST | /api/v1/digital-assets/update-acl | AssetController@updateMultipleACL | - | Sets ACL permissions on assets. Required: url_workspace_id, digital_assets_id, field_value. |
| POST | /api/v1/digital-assets/archive_assets | AssetController@archiveAssets | - | Archives or unarchives assets. Required: url_workspace_id, assets_id, is_archive. |
| POST | /api/v1/digital-assets/delete-file | AssetController@deleteFile | - | Hard deletes assets (S3 file, tags and row; they do not go to Trash). assets_ids is a list of ids or all (every live uncategorised upload). Required: url_workspace_id, assets_ids. |
| POST | /api/v1/digital-assets/convert-asset | AssetController@assetsConvert | - | Queues an asset format conversion. Required: workspace_id, asset_id, asset_type, convert_type. |
Embed codes ​
Middleware: api, throttle:600,1, auth:api, checkUserWithWS, setEtag, IfNoneMatchEtag. Routes: 3.
| Method | Path | Controller@method | Middleware | Notes |
|---|---|---|---|---|
| GET | /api/v1/digital-assets/{assetId}/generate-embed-code | AssetController@generateEmbedCode | - | Generates an embed code for the asset. |
| GET | /api/v1/digital-assets/embed-code-list | AssetController@getEmbedAssetsList | - | Lists assets with embed codes. |
| POST | /api/v1/digital-assets/remove-embed-code | AssetController@removeEmbedCode | - | Removes embed codes. Required: asset_version_ids. |
Asset versions ​
Middleware: api, throttle:600,1, auth:api, checkUserWithWS, setEtag, IfNoneMatchEtag. Routes: 4.
Prefix digital-assets/version.
| Method | Path | Controller@method | Middleware | Notes |
|---|---|---|---|---|
| POST | /api/v1/digital-assets/version/upload | AssetController@uploadVersionFile | - | Uploads a new asset version. Required: asset_id, workspace_id. |
| POST | /api/v1/digital-assets/version/make-current-version | AssetController@makeCurrentVersion | - | Makes a version the current one. |
| DELETE | /api/v1/digital-assets/version/{versionId}/remove | AssetController@removeVersionAssets | - | Removes an asset version. |
| GET | /api/v1/digital-assets/version/{versionId}/download | AssetController@downloadVersionAssets | - | Downloads an asset version. |
Asset analytics ​
Middleware: api, throttle:600,1, auth:api, checkUserWithWS, setEtag, IfNoneMatchEtag. Routes: 1.
Prefix digital-assets/analytics.
| Method | Path | Controller@method | Middleware | Notes |
|---|---|---|---|---|
| POST | /api/v1/digital-assets/analytics/summary | AssetController@assetSummary | - | Analytics summary (views/downloads) for an asset. Required: url_workspace_id, asset_id. bar_data days are read in the user's profile timezone (ResolvesViewerTimezone). |
Asset custom field values ​
Middleware: api, throttle:600,1, auth:api, checkUserWithWS, setEtag, IfNoneMatchEtag. Routes: 5.
| Method | Path | Controller@method | Middleware | Notes |
|---|---|---|---|---|
| GET | /api/v1/digital-assets/get-custom-fields | CustomFieldController@getAssetsCustomFields | - | Custom field values of an asset. Required: workspace_id, asset_id. |
| POST | /api/v1/digital-assets/manage-custom-fields | CustomFieldController@manageCustomFields | - | Custom fields with values/status for assets. Required: workspace_id. |
| POST | /api/v1/digital-assets/update-custom-fields | CustomFieldController@updateCustomFields | - | Updates custom field values on one or more assets. Required: workspace_id, asset_ids, updated_data. |
| POST | /api/v1/digital-assets/update-field-options | CustomFieldController@updateFieldOptions | - | Adds an option to a dropdown custom field. Required: workspace_id, id, option. |
| POST | /api/v1/digital-assets/delete-custom-fields | CustomFieldController@deleteCustomFields | - | Deletes custom field values from assets. Required: workspace_id, assets_custom_fields_id. |
Tags ​
Middleware: api, throttle:600,1, auth:api, checkUserWithWS, setEtag, IfNoneMatchEtag. Routes: 6.
| Method | Path | Controller@method | Middleware | Notes |
|---|---|---|---|---|
| POST | /api/v1/digital-assets/add-tag-to-multiple-file | TagController@addTagToMultipleFile | - | Adds one tag to several assets. |
| POST | /api/v1/digital-assets/add-tags-to-multiple-file | TagController@addTagsToMultipleFile | - | Adds several tags to several assets. |
| POST | /api/v1/digital-assets/delete-tag-from-multiple-file | TagController@deleteTagFromMultipleFile | - | Removes a tag from several assets. |
| POST | /api/v1/digital-assets/get-common-tag-list | TagController@getCommonTagList | - | Tags common to the selected assets. |
| POST | /api/v1/digital-assets/get-suggest-tag-list | TagController@getSuggestTagList | - | Tag suggestions. |
| GET | /api/v1/digital-assets/workspace-tag-list | TagController@getWorkspaceTagList | - | Every distinct tag in the workspace with usage counts. |
Custom field definitions ​
Middleware: api, throttle:600,1, auth:api, checkUserWithWS, setEtag, IfNoneMatchEtag. Routes: 6.
Prefix digital-assets/custom-field.
| Method | Path | Controller@method | Middleware | Notes |
|---|---|---|---|---|
| GET | /api/v1/digital-assets/custom-field/list | CustomFieldController@get | - | Lists custom field definitions. Required: workspace_id. |
| GET | /api/v1/digital-assets/custom-field/get-count/{customFieldId} | CustomFieldController@getAssetsCount | - | Count of live assets with a value for the custom field. Required: workspace_id. |
| POST | /api/v1/digital-assets/custom-field/add | CustomFieldController@add | - | Creates a custom field. Required: workspace_id, field_type, field_label. |
| POST | /api/v1/digital-assets/custom-field/delete | CustomFieldController@delete | - | Deletes a custom field. Required: workspace_id, id. |
| POST | /api/v1/digital-assets/custom-field/update | CustomFieldController@update | - | Updates a custom field. Required: workspace_id, id, field_label. |
| POST | /api/v1/digital-assets/custom-field/update-with-field | CustomFieldController@updateWithField | - | Updates one attribute of a custom field. Required: workspace_id, id, field_name, field_value. |
Folders (category) ​
Middleware: api, throttle:600,1, auth:api, checkUserWithWS, setEtag, IfNoneMatchEtag. Routes: 15.
Prefix digital-assets/category. "Category" is the code name for a folder.
| Method | Path | Controller@method | Middleware | Notes |
|---|---|---|---|---|
| POST | /api/v1/digital-assets/category/add | CategoryController@addCategory | - | Creates a top-level folder. Required: url_workspace_id, folder_name. |
| POST | /api/v1/digital-assets/category/rename/{categoryId} | CategoryController@renameCategory | - | Renames a folder. |
| POST | /api/v1/digital-assets/category/add-sub-category | CategoryController@addSubCategory | - | Creates a subfolder. |
| GET | /api/v1/digital-assets/category/all-category-list | CategoryController@getAllCategory | - | Lists folders. |
| GET | /api/v1/digital-assets/category/sub-category-list | CategoryController@getSubCategoryList | - | Lists subfolders of a folder. |
| POST | /api/v1/digital-assets/category/get-count/{categoryId} | CategoryController@getCategoryAssetCount | - | Asset and subfolder counts for a folder. |
| POST | /api/v1/digital-assets/category/view | CategoryController@viewCategory | - | Folder detail. Required: url_workspace_id, category_id. |
| GET | /api/v1/digital-assets/category/view-files-with-category | CategoryController@getCategoryAndFiles | - | Folder contents (subfolders and assets). Required: url_workspace_id, category_id, sort_value, sort_by. |
| GET | /api/v1/digital-assets/category/view-files-with-category/select-all | CategoryController@getCategoryAndFilesSelectAllIds | - | Select-all: asset ids and subfolder ids of a folder. Required: url_workspace_id, category_id, sort_value, sort_by. |
| GET | /api/v1/digital-assets/category/view-files-with-category-tags | CategoryController@getCategoryAndFilesOld | - | Older folder-contents endpoint (with tags). Required: url_workspace_id, category_id, sort_value, sort_by. |
| POST | /api/v1/digital-assets/category/delete-category-with-files | CategoryController@deleteCategoryAndFiles | - | Moves folders and assets to trash. Required: url_workspace_id. |
| POST | /api/v1/digital-assets/category/permanent-delete-category-with-files | CategoryController@permanentDeleteCategoryAndFiles | - | Permanently deletes trashed folders/assets. |
| GET | /api/v1/digital-assets/category/get-deleted-category-with-files | CategoryController@getDeleteCategoryAndFiles | - | Lists trash. |
| POST | /api/v1/digital-assets/category/restore-deleted-category-with-files | CategoryController@restoreDeleteCategoryAndFiles | - | Restores items from trash. Required: url_workspace_id. |
| GET | /api/v1/digital-assets/category/all-restore-deleted-category-with-files | CategoryController@allRestoreDeleteCategoryAndFiles | - | Restores everything in trash. |
Dealers ​
Middleware: api, throttle:600,1, auth:api, checkUserWithWS, setEtag, IfNoneMatchEtag. Routes: 12.
Prefix digital-assets/dealer (and dealer/user).
| Method | Path | Controller@method | Middleware | Notes |
|---|---|---|---|---|
| GET | /api/v1/digital-assets/dealer/get | DealerController@getDealer | - | Returns a dealer. |
| GET | /api/v1/digital-assets/dealer/list | DealerController@getAllDealer | - | Lists dealers. |
| POST | /api/v1/digital-assets/dealer/add | DealerController@addDealer | - | Creates a dealer. |
| POST | /api/v1/digital-assets/dealer/update | DealerController@updateDealer | - | Updates a dealer. |
| POST | /api/v1/digital-assets/dealer/archive | DealerController@dealerArchive | - | Archives a dealer. |
| GET | /api/v1/digital-assets/dealer/user/get | DealerController@getDealerUser | - | Returns a dealer user. |
| GET | /api/v1/digital-assets/dealer/user/list | DealerController@getAllDealerUsers | - | Lists dealer users. |
| POST | /api/v1/digital-assets/dealer/user/add | DealerController@addDealerUser | - | Creates a dealer user and sends an invitation. |
| POST | /api/v1/digital-assets/dealer/user/update | DealerController@updateDealerUser | - | Updates a dealer user. |
| POST | /api/v1/digital-assets/dealer/user/add-multiple | DealerController@addMultipleDealerUser | - | Creates several dealer users. |
| POST | /api/v1/digital-assets/dealer/user/update-multiple | DealerController@updateMultipleDealerUser | - | Updates several dealer users. |
| POST | /api/v1/digital-assets/dealer/user/delete | DealerController@dealerUserDelete | - | Deletes a dealer user. |
Collages (collection) ​
Middleware: api, throttle:600,1, auth:api, checkUserWithWS, setEtag, IfNoneMatchEtag. Routes: 11.
Prefix digital-assets/collection. "Collection" is the code name for a Collage.
| Method | Path | Controller@method | Middleware | Notes |
|---|---|---|---|---|
| GET | /api/v1/digital-assets/collection/get-all | DamCollectionController@getAll | - | Lists Collages. Required: url_workspace_id. |
| GET | /api/v1/digital-assets/collection/get-all-by-page | DamCollectionController@getAllCollectionByPage | - | Paginated Collage list. Required: url_workspace_id. |
| GET | /api/v1/digital-assets/collection/{collectionId}/assets | DamCollectionController@getCollectionAssets | - | Collage detail with assets. Required: url_workspace_id, sort_value, sort_by. |
| GET | /api/v1/digital-assets/collection/{collectionId}/asset-list | DamCollectionController@getCollectionAssetList | - | Paginated asset list of a Collage. Required: url_workspace_id, sort_value, sort_by. |
| GET | /api/v1/digital-assets/collection/{collectionId}/select-all-asset-ids | DamCollectionController@getCollectionSelectAllAssetIds | - | Select-all: asset ids of a Collage. Required: url_workspace_id, sort_value, sort_by. |
| POST | /api/v1/digital-assets/collection/create | DamCollectionController@create | - | Creates a Collage. Required: name. |
| POST | /api/v1/digital-assets/collection/update/{collectionId} | DamCollectionController@update | - | Updates a Collage. Required: name. |
| DELETE | /api/v1/digital-assets/collection/delete/{collectionId} | DamCollectionController@delete | - | Deletes a Collage. |
| POST | /api/v1/digital-assets/collection/{collectionId}/add-assets | DamCollectionController@addAssets | - | Adds assets to a Collage. Required: assets_id. |
| POST | /api/v1/digital-assets/collection/{collectionId}/remove-assets | DamCollectionController@removeAssets | - | Removes assets from a Collage. Required: assets_id. |
| POST | /api/v1/digital-assets/collection/generate-share-url | DamCollectionController@generateShareUrl | - | Creates a share link for a Collage. Required: id. expiration sets expires_at and expires_timezone the same way as asset share links. |
Portal visibility (permission) ​
Middleware: api, throttle:600,1, auth:api, checkUserWithWS, setEtag, IfNoneMatchEtag. Routes: 2.
Prefix digital-assets/permission.
| Method | Path | Controller@method | Middleware | Notes |
|---|---|---|---|---|
| POST | /api/v1/digital-assets/permission/change-permission | DamPermissionController@changePermission | - | Changes portal visibility of folders/assets. Required: url_workspace_id, visibility. |
| POST | /api/v1/digital-assets/permission/bulk-instance-visibility | DamPermissionController@bulkInstanceVisibility | - | Returns portal visibility for a selection. Required: url_workspace_id. |
Storage analytics ​
Middleware: api, throttle:600,1, auth:api, checkUserWithWS, setEtag, IfNoneMatchEtag. Routes: 2.
| Method | Path | Controller@method | Middleware | Notes |
|---|---|---|---|---|
| GET | /api/v1/digital-assets/storage-analytics | AnalyticsController@storageAnalytics | - | Storage usage analytics. |
| GET | /api/v1/digital-assets/send-storage-analytics-email | AnalyticsController@sendStorageAnalyticsEmail | - | Emails the storage analytics report. |
ACL roles ​
Middleware: api, throttle:600,1, auth:api, checkUserWithWS, setEtag, IfNoneMatchEtag. Routes: 5.
Prefix digital-assets/acl.
| Method | Path | Controller@method | Middleware | Notes |
|---|---|---|---|---|
| GET | /api/v1/digital-assets/acl/list | ACLController@get | - | Lists ACL roles. Required: url_workspace_id. |
| POST | /api/v1/digital-assets/acl/create | ACLController@create | - | Creates an ACL role. Required: url_workspace_id, name. |
| PATCH | /api/v1/digital-assets/acl/update | ACLController@update | - | Updates an ACL role. Required: url_workspace_id, id, name. |
| PATCH | /api/v1/digital-assets/acl/update-order | ACLController@updateOrder | - | Reorders ACL roles. |
| DELETE | /api/v1/digital-assets/acl/delete | ACLController@delete | - | Deletes ACL roles. |
Portal tiles ​
Middleware: api, throttle:600,1, auth:api, checkUserWithWS, setEtag, IfNoneMatchEtag. Routes: 6.
Prefix digital-assets/tile.
| Method | Path | Controller@method | Middleware | Notes |
|---|---|---|---|---|
| GET | /api/v1/digital-assets/tile/list | DamTilesController@get | - | Lists portal tiles. Required: url_workspace_id, instance_id. |
| POST | /api/v1/digital-assets/tile/create | DamTilesController@create | - | Creates a portal tile. Required: workspace_id, instance_id, title, url, image. |
| POST | /api/v1/digital-assets/tile/update | DamTilesController@update | - | Updates a portal tile. Required: id, workspace_id, instance_id, title, url, is_active. |
| PATCH | /api/v1/digital-assets/tile/update-slider-config | DamTilesController@updateSliderConfig | - | Updates the tile slider configuration. Required: workspace_id, instance_id, is_slider. |
| PATCH | /api/v1/digital-assets/tile/update-order | DamTilesController@updateOrder | - | Reorders portal tiles. Required: workspace_id, order. |
| DELETE | /api/v1/digital-assets/tile/delete | DamTilesController@delete | - | Deletes a portal tile. Required: id. |
Notification settings ​
Middleware: api, throttle:600,1, auth:api, checkUserWithWS, setEtag, IfNoneMatchEtag. Routes: 8.
Prefix digital-assets/notification.
| Method | Path | Controller@method | Middleware | Notes |
|---|---|---|---|---|
| GET | /api/v1/digital-assets/notification/organization-list | DamNotificationController@getOrganizationNotificationList | - | Workspace-level notification settings. |
| POST | /api/v1/digital-assets/notification/pause-workspace-notification | DamNotificationController@updateWorkSpacePauseNotificationStatus | - | Pauses/resumes all workspace notifications. Required: url_workspace_id, dam_notification. |
| POST | /api/v1/digital-assets/notification/set-organization-profile-notification | DamNotificationController@setOrganizationProfileNotificationStatus | - | Sets a workspace-level notification switch. Required: url_workspace_id, notification_id, status, type. |
| GET | /api/v1/digital-assets/notification/user-notification-list | DamNotificationController@getUserProfileNotificationList | - | User-level notification settings. |
| POST | /api/v1/digital-assets/notification/set-user-profile-notification | DamNotificationController@setUserNotificationStatus | - | Sets a user-level notification switch. |
| GET | /api/v1/digital-assets/notification/system-notification-list | DamNotificationController@getSystemNotificationList | - | In-app system notifications. |
| POST | /api/v1/digital-assets/notification/read-unread-system-notification | DamNotificationController@readUnreadSystemNotification | - | Toggles read/unread on a system notification. |
| POST | /api/v1/digital-assets/notification/mark-all-read-unread-notification | DamNotificationController@markAllReadUnreadSystemNotifications | - | Marks all system notifications read. |
Subscription (signed in) ​
Middleware: api, throttle:600,1, auth:api, checkUserWithWS, setEtag, IfNoneMatchEtag. Routes: 8.
Prefix digital-assets/subscription.
| Method | Path | Controller@method | Middleware | Notes |
|---|---|---|---|---|
| GET | /api/v1/digital-assets/subscription/get | SubscriptionController@userActiveSubscription | - | Active subscription of the workspace. |
| POST | /api/v1/digital-assets/subscription/make-default-card | SubscriptionController@makeDefaultCard | - | Sets the default card. Required: default_source. |
| POST | /api/v1/digital-assets/subscription/delete-card | SubscriptionController@deleteCard | - | Deletes a card. Required: card_id. |
| POST | /api/v1/digital-assets/subscription/cancel | SubscriptionController@cancelSubscription | - | Cancels the subscription. Required: cancel_reason, cancel_comment. |
| POST | /api/v1/digital-assets/subscription/re-activate | SubscriptionController@reActivateSubscription | - | Reactivates a cancelled subscription. |
| POST | /api/v1/digital-assets/subscription/activity-log | SubscriptionController@activityLog | - | Adds a subscription activity-log entry. |
| POST | /api/v1/digital-assets/subscription/delete-all-data | SubscriptionController@deleteAllData | - | Deletes all workspace data (account removal). Required: cancel_reason, cancel_comment. |
| POST | /api/v1/digital-assets/subscription/cancel-trial | SubscriptionController@cancelTrial | - | Cancels a trial account. Required: cancel_reason, cancel_comment. |
Feedback, activity and downloads ​
Middleware: api, throttle:600,1, auth:api. Routes: 4.
Back outside digital-assets: only auth:api and the throttle apply.
| Method | Path | Controller@method | Middleware | Notes |
|---|---|---|---|---|
| POST | /api/v1/send-feedback | FeedbackController@sendFeedback | - | Sends product feedback by email. The caller must be an active member of the workspace (420); empty feedback returns 422 Please enter your feedback. |
| POST | /api/v1/add-transaction-activity | TransactionActivityController@addTransactionActivityEncode | - | Logs an activity event (encoded payload). |
| GET | /api/v1/transaction-activity-list | TransactionActivityController@transactionActivityList | - | Lists activity events. |
| POST | /api/v1/generate-zip-data | ZipLinkController@generateAdminZipData | - | Builds the ZIP download manifest for selected assets/folders. Required: workspace_id. The route sits outside checkUserWithWS, so the method checks that the caller is an active member with a DAM role in that workspace (420 otherwise). |