Skip to main content

MCP Workspace tutorial

Use IQM Model Context Protocol (MCP) to interact with the Workspace API.

Overview​

This page provides examples of how to use IQM MCP to access and manage Workspaces with the Workspace API. The Workspace API is used to manage Organizations, Workspaces, Customers, and Advertisers:

  • Organizations are top-level descriptions of a company's profile, including its name, website, and location details.
  • Workspaces operate within Organizations and can be Customers or Advertisers.
  • Users operate within Workspaces and can be assigned Customers.

Before you begin​

To access Workspace API tools using IQM MCP, the following are required:

  1. An account on the IQM platform
    • See Before you begin to create an account and request a Client ID and Client Secret
  2. The user must have login access to the Organization and access to the Customer app to perform Customer-related actions

More resources​

Organization management​

PromptResponse exampleNotes
Show me a list of Organizations
Show me the logged-in Organization details
Let's update the Organization profile details. For description: "IQM Test Org 1" Website: "https://iqm.com/"You can ask the MCP what details are available to update for an Organization and it gives you a list of fields that can be modified and the associated static lookup tools for certain entity IDs.

Customer management​

PromptResponse exampleNotes
I want to invite a new Customer to the platformMCP prompts the user for Customer details such as name, email, and Organization, and then sends an invitation to the specified email address.
Get me a list of Customers
Put Customer 205177 on hold
Assign Customer 205176 to user 344286Ask for a list of users to get the user ID.
Get details for Customer CustTest1

Advertiser management​

PromptResponse exampleNotes
Let's create a new Advertiser profileMCP prompts the user to choose which Customer the Advertiser profile belongs to.
Let's update MCP Test Advertiser:
Update the name to "New Advertiser 1" and the CEO name to "John Doe"
Show me a list of Advertisers for Customer SDK Test Customer

Tools index​

In the tables below you can find the complete set of Workspace management tools available in the MCP, categorized by function.

Each tool includes a brief description and a link to the corresponding API documentation for more details on its functionality and usage.

Use this index as a reference to explore the various Workspace management capabilities of the MCP and how they relate to the Workspace API endpoints.

Organization details​

Tool nameDescriptionDocumentation
getAllowedOrganizationsGet a list of allowed organizationsGet list of allowed Organizations
getOrganizationProfileGet the organization's profile detailsGet Organization details
getUserInteractionEventsGet a list of user interaction eventsGet list of user interaction events
upsertInteractionEventUpdate or insert a user interaction eventUpsert interaction event
isDomainAvailableCheck if a workspace domain is availableCheck for available domain
getOrganizationsApplications_1Get the list of applications available for organizationsOrganization applications list

Organization management​

Tool nameDescriptionDocumentation
updateOrganizationProfileUpdate the organization's profileUpdate Organization profile
updateOrganizationEmailUpdate the organization's email addressUpdate Organization email

Whitelabel settings​

Tool nameDescriptionDocumentation
getWhiteLabelSettingsGet the organization's whitelabel settingsGet whitelabel settings
updateWhiteLabelSettingsUpdate whitelabel settings for the organizationUpdate whitelabel settings
addWhiteLabelDomainAdd a whitelabel domain to the organizationAdd whitelabel domain
verifyWhiteLabelDomainVerify the organization's whitelabel domainVerify whitelabel domain
addWhiteLabelPixelUrlAdd a whitelabel pixel URL for the organizationAdd whitelabel pixel URL

Workspace management​

Tool nameDescriptionDocumentation
createWorkspaceCreate a new workspaceCreate a Workspace
getAdminUserListGet a list of admin usersGet list of admin users
updateWorkspaceDomainUpdate a workspace domainUpdate Workspace domain
getWorkspacesGet a list of workspacesGet list of Workspaces
getWorkspaceInitDetailsGet workspace initialization detailsGet Workspace initialization details
getWorkspaceOrganizationLogoGet the organization logo for a workspaceGet Workspace Organization logo
getWorkspaceChatBotAppIdByOwIdGet the chatbot app ID for a workspace by organization workspace IDGet Workspace chatbot app ID
getWorkspaceChatBotAppIdByWorkspaceDomainGet the chatbot app ID for a workspace by domainGet Workspace chatbot app ID by domain
sendFindMyWorkspaceEmailSend a "Find My Workspace" email to a userSend find my Workspace email

Customer details​

Tool nameDescriptionDocumentation
getCustomersListGet a detailed list of customersGet Customer details
getCustomerBasicDetailsGet a basic details list for customersGet basic Customer details
getMultiLevelOrganizationsGet a multi-level list of customersGet multi-level Customers list
getImmediateCustomersGet a list of immediate customersGet immediate Customers list
getCustomerOperationDetailsByIdGet customer operations details by customer IDGet Customer operations details
getCustomerOperationLabelsGet the list of labels for customer operationsGet Customer operations label list
getCustomerCountGet the count of customers grouped by statusGet count of Customers by status
getCustomersUsersGet the users assigned to a specific customerGet list of users for selected Customer
getUserAssignedCustomersGet the customers assigned to a userGet list of user assigned Customers
getRemainingCustomersForUserGet the remaining customers available for assignment to a userGet user's remaining Customers
getAllowedCustomersOWIdsGet the list of allowed customer organization workspace IDsGet allowed Customer OW IDs
getRemainingApplicationGet the remaining applications available to assign to a customerGet list of remaining apps for Customer
getMetabaseExternalServiceClientCredentialsGet Metabase external service client credentialsGet Metabase client credentials
getAdvertisersGet advertisers associated with a customerGet list of Advertisers for Customer

Customer management​

Tool nameDescriptionDocumentation
getInvitePreRequisiteGet pre-requisite details required before sending a customer invitationInvitation pre-requisite details
sendInvitationsInvite a customer to the platformInvite Customer to platform
resendCustomerInvitationResend a customer invitationResend Customer invite
cancelCustomerInvitationCancel a pending customer invitationCancel Customer invite
assignCustomersToUserAssign customers to a userAssign Customer to user
removeCustomersAssociationFromUserRemove a customer association from a userUnassign Customer from user
approveCustomerApprove a customer sign-up requestApprove Customer
rejectCustomerReject a customer sign-up requestReject Customer
addApplicationAccessToCustomerAdd application access for a customerAdd Customer app access
revokeApplicationAccessToCustomerRevoke application access for a customerRevoke Customer app access
putCustomerOnHoldSuspend a customer accountPut Customer on-hold
reactivateCustomerReactivate a suspended customer accountRe-activate Customer
addLabelForCustomerOperationAdd a label to a customer operationAdd label for Customer operation
updateIsBidShadingEnabledFlagEnable or disable bid shading for a customerEnable bid shading for Customer
updateCustomerOperationDetailsByOwIdUpdate customer operations detailsUpdate Customer operations details

Advertiser management​

Tool nameDescriptionDocumentation
getAdvertiserProfilesGet a list of advertiser profiles and detailsGet list of Advertiser profile and details
addAdvertiserProfileAdd a new advertiser profileAdd Advertiser profile
updateAdvertiserProfileEdit an existing advertiser profileEdit Advertiser profile
deleteAdvertiserProfileDelete an advertiser profileDelete Advertiser profile

Static details lists​

Tool nameDescriptionDocumentation
getOrganizationWorkspaceStatusGet the list of organization-workspace status optionsOrganization Workspace status
getUserOrganizationWorkspaceStatusGet the list of user status optionsUser status
getCustomerTypeGet the list of customer type optionsCustomer type
getCustomerPaymentTypeGet the list of customer payment type optionsCustomer payment type
getCustomerAccountTypeGet the list of customer account type optionsCustomer account type
getCustomerListSortableFieldsGet the list of sortable fields for customer listsCustomer list sortable fields
getUserSortByGet the list of sort-by options for usersUser sort by options
getOrganizationExpertizeGet the list of organization expertise optionsOrganization expertise
getCompanySizeGet the list of company size optionsCompany size
getIndustriesGet the list of industry optionsIndustries
getMediaBudgetGet the list of media budget optionsMedia budget
getVerticalsGet the list of available verticalsVerticals
Have a question?
Was this page helpful?