Moloco Ads Campaign Management API

REST API for creating and managing Moloco Ads (Cloud DSP) campaigns — ad accounts, products, tracking links, campaigns, ad groups, creatives, creative groups, audience targets and customer sets — plus analytics, cohort summaries, reports, report exports and impression/click/conversion log generation. Versioned via the Moloco-Cloud-Api-Version header; bearer token issued from an API key.

OpenAPI Specification

moloco-ads-campaign-management-openapi.yml Raw ↑
openapi: 3.0.0
info:
  title: Moloco Ads Campaign Management API
  description: Moloco Ads Campaign Management API provides functionalities for Moloco Ads Campaigns.
  version: '1.10'
  contact:
    name: Moloco Inc.
    url: https://www.moloco.com
tags:
- name: DspApi
paths:
  /cm/v1/ad-accounts:
    get:
      summary: List up AdAccounts.
      description: List all AdAccounts accessible by the current user on the current Workplace.
      operationId: DspApi_ListAdAccounts
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/messagesListAdAccountsResponse'
        default:
          description: Error. Detailed cause can be found in the `details` field.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/messagesListAdAccountsError'
      tags:
      - AdAccount
    post:
      summary: Create a new AdAccount.
      description: Create a new AdAccount on the Workplace.
      operationId: DspApi_CreateAdAccount
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/messagesCreateAdAccountResponse'
        default:
          description: Error. Detailed cause can be found in the `details` field.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/messagesCreateAdAccountError'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/dspAdAccount'
        description: The AdAccount data to be created.
        required: true
      tags:
      - AdAccount
  /cm/v1/ad-accounts/{ad_account_id}:
    get:
      summary: Read an existing AdAccount.
      description: Read an existing AdAccount.
      operationId: DspApi_ReadAdAccount
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/messagesReadAdAccountResponse'
        default:
          description: Error. Detailed cause can be found in the `details` field.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/messagesReadAdAccountError'
      parameters:
      - name: ad_account_id
        description: The ID of the AdAccount to be retrieved.
        in: path
        required: true
        schema:
          type: string
      tags:
      - AdAccount
    delete:
      summary: Delete an existing AdAccount.
      description: Delete an AdAccount from the current Workplace.
      operationId: DspApi_DeleteAdAccount
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/messagesDeleteAdAccountResponse'
        default:
          description: Error. Detailed cause can be found in the `details` field.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/messagesDeleteAdAccountError'
      parameters:
      - name: ad_account_id
        description: The AdAccount ID to be deleted.
        in: path
        required: true
        schema:
          type: string
      tags:
      - AdAccount
    put:
      summary: Update an existing AdAccount.
      description: Update an existing AdAccount.
      operationId: DspApi_UpdateAdAccount
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/messagesUpdateAdAccountResponse'
        default:
          description: Error. Detailed cause can be found in the `details` field.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/messagesUpdateAdAccountError'
      parameters:
      - name: ad_account_id
        description: The ID of the AdAccount.
        in: path
        required: true
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/dspAdAccount'
        description: The AdAccount data to be updated.
        required: true
      tags:
      - AdAccount
  /cm/v1/ad-groups:
    get:
      summary: List up AdGroups.
      description: List up all AdGroups of the Campaign.
      operationId: DspApi_ListAdGroups
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/messagesListAdGroupsResponse'
        default:
          description: Error. Detailed cause can be found in the `details` field.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/messagesListAdGroupsError'
      parameters:
      - name: ad_account_id
        description: The AdAccount ID to which AdGroups belong to.
        in: query
        required: true
        schema:
          type: string
      - name: product_id
        description: The Product ID to which AdGroups belong to.
        in: query
        required: false
        schema:
          type: string
      - name: campaign_id
        description: 'The Campaign ID which AdGroups belong to.

          If not specified, response will contains all AdGroups under the Product.'
        in: query
        required: false
        schema:
          type: string
      - name: inquiry_option
        description: "InquiryOption to specify which information to retrieve.\n\n - INQUIRY_ENTITY: Only the target entity\
          \ itself is returned in response.\nThis InquiryOption is faster than other options as it reads the single entity\
          \ from the database.\n - INQUIRY_OVERVIEW: The target entity's overview information is returned in response.\nIn\
          \ general, the overview information includes the brief content of the target entity and its related entities.\n\
          This InquiryOption is slower than INQUIRY_ENTITY but the returned data size is usually smaller than that.\n - INQUIRY_ALL:\
          \ The target entity and its summary information is returned in response.\nThis InquiryOption is equivalent to INQUIRY_ENTITY\
          \ + INQUIRY_OVERVIEW, and it's slow and big."
        in: query
        required: false
        schema:
          type: string
          enum:
          - UNKNOWN_INQUIRY_OPTION
          - INQUIRY_ENTITY
          - INQUIRY_OVERVIEW
          - INQUIRY_ALL
          default: UNKNOWN_INQUIRY_OPTION
      tags:
      - AdGroup
    post:
      summary: Create a new AdGroup.
      description: Create a new AdGroup of the Campaign.
      operationId: DspApi_CreateAdGroup
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/messagesCreateAdGroupResponse'
        default:
          description: Error. Detailed cause can be found in the `details` field.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/messagesCreateAdGroupError'
      parameters:
      - name: campaign_id
        description: The Campaign ID the AdGroup belongs to.
        in: query
        required: true
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/dspAdGroup'
        description: The AdGroup date to be created.
        required: true
      tags:
      - AdGroup
  /cm/v1/ad-groups/{ad_group_id}:
    get:
      summary: Read an existing AdGroup.
      description: Read an existing AdGroup.
      operationId: DspApi_ReadAdGroup
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/messagesReadAdGroupResponse'
        default:
          description: Error. Detailed cause can be found in the `details` field.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/messagesReadAdGroupError'
      parameters:
      - name: ad_group_id
        description: The ID of the AdGroup to be retrieved.
        in: path
        required: true
        schema:
          type: string
      - name: campaign_id
        description: The Campaign ID the AdGroup belongs to.
        in: query
        required: true
        schema:
          type: string
      tags:
      - AdGroup
    delete:
      summary: Delete an existing AdGroup.
      description: Delete an existing AdGroup.
      operationId: DspApi_DeleteAdGroup
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/messagesDeleteAdGroupResponse'
        default:
          description: Error. Detailed cause can be found in the `details` field.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/messagesDeleteAdGroupError'
      parameters:
      - name: ad_group_id
        description: The ID of the AdGroup to be deleted.
        in: path
        required: true
        schema:
          type: string
      - name: campaign_id
        description: The Campaign ID the AdGroup belongs to.
        in: query
        required: true
        schema:
          type: string
      tags:
      - AdGroup
    put:
      summary: Update an existing AdGroup.
      description: Update an existing AdGroup.
      operationId: DspApi_UpdateAdGroup
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/messagesUpdateAdGroupResponse'
        default:
          description: Error. Detailed cause can be found in the `details` field.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/messagesUpdateAdGroupError'
      parameters:
      - name: ad_group_id
        description: The ID of the AdGroup to be updated.
        in: path
        required: true
        schema:
          type: string
      - name: campaign_id
        description: The Campaign ID the AdGroup belongs to.
        in: query
        required: true
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/dspAdGroup'
        description: The AdGroup data to be updated.
        required: true
      tags:
      - AdGroup
  /cm/v1/analytics-detail:
    post:
      summary: Provide the detail of ad performance analytics.
      description: Provide the detail of ad performance analytics.
      operationId: DspApi_QueryAnalyticsDetail
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/messagesQueryAnalyticsDetailResponse'
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/googlerpcStatus'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/messagesQueryAnalyticsDetailRequest'
        required: true
      tags:
      - Analytics
  /cm/v1/analytics-overview:
    post:
      summary: Provide the overview of ad performance analytics.
      description: Provide the overview of ad performance analytics.
      operationId: DspApi_QueryAnalyticsOverview
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/messagesQueryAnalyticsOverviewResponse'
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/googlerpcStatus'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/messagesQueryAnalyticsOverviewRequest'
        required: true
      tags:
      - Analytics
  /cm/v1/analytics-skadnetwork:
    post:
      summary: Provide the SKAdNetwork ad performance analytics.
      description: Provide the SKAdNetwork ad performance analytics.
      operationId: DspApi_QueryAnalyticsSKAdNetwork
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/messagesQueryAnalyticsSKAdNetworkResponse'
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/googlerpcStatus'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/messagesQueryAnalyticsSKAdNetworkRequest'
        required: true
      tags:
      - Analytics
  /cm/v1/audience-targets:
    get:
      summary: List up AudienceTargets.
      description: List up all AudienceTargets of the AdAccount.
      operationId: DspApi_ListAudienceTargets
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/messagesListAudienceTargetsResponse'
        default:
          description: Error. Detailed cause can be found in the `details` field.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/messagesListAudienceTargetsError'
      parameters:
      - name: ad_account_id
        description: The AdAccount ID the AudienceTargets belong to.
        in: query
        required: true
        schema:
          type: string
      tags:
      - AudienceTarget
    post:
      summary: Create a new AudienceTarget.
      description: Create a new AudienceTarget of the AdAccount.
      operationId: DspApi_CreateAudienceTarget
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/messagesCreateAudienceTargetResponse'
        default:
          description: Error. Detailed cause can be found in the `details` field.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/messagesCreateAudienceTargetError'
      parameters:
      - name: ad_account_id
        description: The AdAccount ID the AudienceTarget belongs to.
        in: query
        required: true
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/dspSharedAudienceTarget'
        description: The AudienceTarget data to be created.
        required: true
      tags:
      - AudienceTarget
  /cm/v1/audience-targets/{audience_target_id}:
    get:
      summary: Read an existing AudienceTarget.
      description: Read an existing AudienceTarget.
      operationId: DspApi_ReadAudienceTarget
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/messagesReadAudienceTargetResponse'
        default:
          description: Error. Detailed cause can be found in the `details` field.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/messagesReadAudienceTargetError'
      parameters:
      - name: audience_target_id
        description: The ID of the AudienceTarget to be retrieved.
        in: path
        required: true
        schema:
          type: string
      - name: ad_account_id
        description: The AdAccount ID the AudienceTarget belongs to.
        in: query
        required: true
        schema:
          type: string
      tags:
      - AudienceTarget
    delete:
      summary: Delete an existing AudienceTarget.
      description: Delete an existing AudienceTarget.
      operationId: DspApi_DeleteAudienceTarget
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/messagesDeleteAudienceTargetResponse'
        default:
          description: Error. Detailed cause can be found in the `details` field.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/messagesDeleteAudienceTargetError'
      parameters:
      - name: audience_target_id
        description: The ID of the AudienceTarget to be deleted.
        in: path
        required: true
        schema:
          type: string
      - name: ad_account_id
        description: The AdAccount ID the AudienceTarget belongs to.
        in: query
        required: true
        schema:
          type: string
      tags:
      - AudienceTarget
    put:
      summary: Update an existing AudienceTarget.
      description: Update an existing AudienceTarget.
      operationId: DspApi_UpdateAudienceTarget
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/messagesUpdateAudienceTargetResponse'
        default:
          description: Error. Detailed cause can be found in the `details` field.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/messagesUpdateAudienceTargetError'
      parameters:
      - name: audience_target_id
        description: The ID of the AudienceTarget to be updated.
        in: path
        required: true
        schema:
          type: string
      - name: ad_account_id
        description: The AdAccount ID the AudienceTarget belongs to.
        in: query
        required: true
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/dspSharedAudienceTarget'
        description: The AudienceTarget data to be updated.
        required: true
      tags:
      - AudienceTarget
  /cm/v1/auth/ad-account/{ad_account_id}/users:
    get:
      summary: List ad account users
      description: 'List users under a certain ad account.

        With `include_role` query parameter, response can include roles.

        API callers who have a WORKPLACE_OWNER or AD_ACCOUNT_OWNER or AD_ACCOUNT_MEMBER role can call this API.'
      operationId: DspApi_ListAdAccountUsers
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/messagesListAdAccountUsersResponse'
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/googlerpcStatus'
      parameters:
      - name: ad_account_id
        description: The ad account ID.
        in: path
        required: true
        schema:
          type: string
      - name: include_role
        description: Flag whether response includes user's role.
        in: query
        required: false
        schema:
          type: boolean
      tags:
      - User
  /cm/v1/auth/password:
    post:
      summary: Update user password
      description: 'Update user password.

        You can call this API with token whose type is AUTH_TOKEN, UPDATE_PASSWORD_TOKEN.'
      operationId: DspApi_UpdatePassword
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/messagesUpdatePasswordResponse'
        default:
          description: 'Error. Detailed cause can be found in the `details` field.

            '
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/messagesUpdatePasswordError'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/messagesUpdatePasswordRequest'
        required: true
      tags:
      - User
  /cm/v1/auth/roles/grant:
    post:
      summary: Grant the role to the user
      description: Grant the Role to the user.
      operationId: DspApi_GrantRole
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/messagesGrantRoleResponse'
        default:
          description: Error. Detailed cause can be found in the `details` field.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/messagesGrantRoleError'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/messagesGrantRoleRequest'
        required: true
      tags:
      - Role
  /cm/v1/auth/roles/revoke:
    post:
      summary: Revoke the role from the user
      description: Revoke the role from the user
      operationId: DspApi_RevokeRole
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/messagesRevokeRoleResponse'
        default:
          description: Error. Detailed cause can be found in the `details` field.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/messagesRevokeRoleError'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/messagesRevokeRoleRequest'
        required: true
      tags:
      - Role
  /cm/v1/auth/tokens:
    post:
      summary: Issue a new token.
      description: 'Issues a new token that gives you access to Moloco Ads APIs.

        Tokens are issued by workplace such that you need a unique token for each workplace you would like access to.

        Each token is valid for 16 hours, and you will need a new token after the token has expired.'
      operationId: DspApi_CreateToken
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/messagesCreateTokenResponse'
        default:
          description: Error. Detailed cause can be found in the `details` field.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/messagesCreateTokenError'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/messagesCreateTokenRequest'
        required: true
      tags:
      - Token
      security: []
  /cm/v1/auth/users:
    get:
      summary: List workplace users
      description: 'List users under a certain workplace.

        With `include_role` query parameter, response can include roles.

        Only API callers who have a WORKPLACE_OWNER role can call this API.'
      operationId: DspApi_ListWorkplaceUsers
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/messagesListWorkplaceUsersResponse'
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/googlerpcStatus'
      parameters:
      - name: include_role
        description: Flag whether response includes user's role.
        in: query
        required: false
        schema:
          type: boolean
      - name: filter_roles
        description: "Filter the users who have this role.\nIf multiple roles are given, users who have one of these roles\
          \ are filtered.\n\n - WORKPLACE_OWNER: Workplace owner represents a user who can do anything in a given workplace.\n\
          \ - AD_ACCOUNT_OWNER: Ad account owner represents a user who can do anything in a given ad account.\n - AD_ACCOUNT_MEMBER:\
          \ Ad account member can view all users of the Ad Account.\nCan invite new users as Ad Account Member or Ad Account\
          \ Viewer\nCan edit your own information (ex: name)\nCan create and edit ad campaigns\n - AD_ACCOUNT_VIEWER: Ad account\
          \ Viewer role offers a limited set of permissions that allows users\nonly to read the basic information of the resources."
        in: query
        required: false
        explode: true
        schema:
          type: array
          items:
            type: string
            enum:
            - WORKPLACE_OWNER
            - AD_ACCOUNT_OWNER
            - AD_ACCOUNT_MEMBER
            - AD_ACCOUNT_VIEWER
      - name: match_roles
        description: "Select the users who have this role.\nIf multiple roles are given, only users who have all of these\
          \ roles are selected.\n\n - WORKPLACE_OWNER: Workplace owner represents a user who can do anything in a given workplace.\n\
          \ - AD_ACCOUNT_OWNER: Ad account owner represents a user who can do anything in a given ad account.\n - AD_ACCOUNT_MEMBER:\
          \ Ad account member can view all users of the Ad Account.\nCan invite new users as Ad Account Member or Ad Account\
          \ Viewer\nCan edit your own information (ex: name)\nCan create and edit ad campaigns\n - AD_ACCOUNT_VIEWER: Ad account\
          \ Viewer role offers a limited set of permissions that allows users\nonly to read the basic information of the resources."
        in: query
        required: false
        explode: true
        schema:
          type: array
          items:
            type: string
            enum:
            - WORKPLACE_OWNER
            - AD_ACCOUNT_OWNER
            - AD_ACCOUNT_MEMBER
            - AD_ACCOUNT_VIEWER
      tags:
      - User
  /cm/v1/auth/users/complete-signup:
    post:
      summary: Complete user signup
      description: 'Complete the user signup with additional info.

        The bearer token should be the password reset token which is achieved from `create password email`.

        Once this API succeeds, the user’s signed_up status becomes true.'
      operationId: DspApi_CompleteSignup
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/messagesCompleteSignupResponse'
        default:
          description: Error. Detailed cause can be found in the `details` field.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/messagesCompleteSignupError'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/messagesCompleteSignupRequest'
        required: true
      tags:
      - User
  /cm/v1/auth/users/expel:
    post:
      summary: Expel the user
      description: 'Expel the user from an API callers’ workplace.

        Only API callers who have the WORKPLACE_OWNER role can expel users.

        Expelled users will no longer have any roles under the workplace.'
      operationId: DspApi_ExpelUser
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/messagesExpelUserResponse'
        default:
          description: Error. Detailed cause can be found in the `details` field.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/messagesExpelUserError'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/messagesExpelUserRequest'
        required: true
      tags:
      - User
  /cm/v1/auth/users/forgot-password:
    post:
      summary: Forgot user password
      description: 'If the user forgot the password, use this API to receive `password reset email`.

        The `password reset email` contains password reset token for updating password and user’s email which will be used
        to call `UpdatePassword` API.

        The token is valid for 7 days.'
      operationId: DspApi_ForgotPassword
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/messagesForgotPasswordResponse'
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/googlerpcStatus'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/messagesForgotPasswordRequest'
        required: true
      tags:
      - User
      security: []
  /cm/v1/auth/users/invite:
    post:
      summary: Invite the user
      description: 'Invite the user to an API callers’ workplace.

        The user who has WORKPLACE_OWNER or AD_ACCOUNT_OWNER or AD_ACCOUNT_MEMBER Roles can invite users to a workplace.'
      operationId: DspApi_InviteUser
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/messagesInviteUserResponse'
        default:
          description: Error. Detailed cause can be found in the `details` field.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/messagesInviteUserError'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/messagesInviteUserRequest'
        required: true
      tags:
      - User
  /cm/v1/auth/users/reset-password:
    post:
      summary: Reset the user password
      description: 'reset the user password.

        The bearer token should be the password reset token which is achieved from `password reset email`.

        Once this API succeeds, the user’s signed_up status becomes true.'
      operationId: DspApi_ResetPassword
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/messagesResetPasswordResponse'
        default:
          description: Error. Detailed cause can be found in the `details` field.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/messagesResetPasswordError'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/messagesResetPasswordRequest'
        required: true
      tags:
      - User
  /cm/v1/auth/users/withdrawal:
    post:
      summary: Delete the user
      description: 'Delete the user.

        '
      operationId: DspApi_DeleteUser
      responses:
        '200':
          description: A successful response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/messagesDeleteUserResponse'
        default:
          description: Error. Detail

# --- truncated at 32 KB (551 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/moloco/refs/heads/main/openapi/moloco-ads-campaign-management-openapi.yml