Sweep CRM Orgs API

The CRM Orgs API from Sweep — 21 operation(s) for crm orgs.

Operations 23

GET /crm-orgs Crm orgs controller get orgs #
POST /crm-orgs/new Crm orgs controller create orgs #
GET /crm-orgs/org/{orgId}/salesforce-oauth Crm orgs controller get SFDCO auth path #
GET /crm-orgs/org/{orgId} Crm orgs controller get org #
PATCH /crm-orgs/org/{orgId} Crm orgs controller update org #
GET /crm-orgs/org/{orgId}/emailTemplates Crm orgs controller get email templates #
GET /crm-orgs/org/{orgId}/object-types/{objectName}/child-relationship-names Crm orgs controller get child relationship names #
GET /crm-orgs/org/{orgId}/apex-classes Crm orgs controller get apex classes #
POST /crm-orgs/salesforce-oauth2-code Crm orgs controller handle SFDCO auth authorization code #
POST /crm-orgs/org/{orgId}/connect-anyway Crm orgs controller connect anyway #
GET /crm-orgs/org/{orgId}/object-types returns the available object types in the specified salto workspace of orgId #
GET /crm-orgs/org/{orgId}/object-types-2 returns the available object types in the specified salesforce orgId #
GET /crm-orgs/org/{orgId}/users/member-properties returns all users in org from the managed package #
GET /crm-orgs/org/{orgId}/users returns all users in org (managed package not required) #
POST /crm-orgs/org/{orgId}/users/{userId}/timeOff Crm orgs controller create user time off #
PUT /crm-orgs/org/{orgId}/users/{userId}/timeOff/{timeOffId} Crm orgs controller update user time off #
DELETE /crm-orgs/org/{orgId}/users/{userId}/timeOff/{timeOffId} Crm orgs controller delete user time off #
GET /crm-orgs/org/{orgId}/queues returns all queues in org #
GET /crm-orgs/org/{orgId}/funnels-and-record-types Crm orgs controller get all funnels and record types #
GET /crm-orgs/org/{orgId}/objects Crm orgs controller get salesforce object types #
GET /crm-orgs/org/{orgId}/objects/{objectName}/funnels-and-record-types Crm orgs controller get object funnels and record types #
GET /crm-orgs/org/{orgId}/objects/{objectName}/record-types/{recordTypeName} Crm orgs controller get leading field candidates for record type #
POST /crm-orgs/org/{orgId}/sweep-permission-set-group-assignment Crm orgs controller assign permission set group #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/sweep-crm-orgs-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

sweep-crm-orgs-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Sweep CRM Orgs API
  description: This is a publicly available Sweep API.
  version: '0.1'
  contact: {}
servers:
- url: https://api.sweep.io
  description: Sweep production API — the host this document was harvested from (GET /api-json); /health responds here
tags:
- name: CRM Orgs
paths:
  /crm-orgs:
    get:
      operationId: CrmOrgsController_getOrgs
      parameters:
      - name: connectedOnly
        required: true
        in: query
        schema:
          type: boolean
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
      security:
      - bearer: []
      tags:
      - CRM Orgs
      summary: Crm orgs controller get orgs
      x-summary-source: derived
  /crm-orgs/new:
    post:
      operationId: CrmOrgsController_createOrgs
      parameters:
      - name: demo
        required: true
        in: query
        schema:
          type: boolean
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CrmOrgCreateDto'
      responses:
        '201':
          description: ''
          content:
            application/json:
              schema:
                type: object
      security:
      - bearer: []
      tags:
      - CRM Orgs
      summary: Crm orgs controller create orgs
      x-summary-source: derived
  /crm-orgs/org/{orgId}/salesforce-oauth:
    get:
      operationId: CrmOrgsController_getSFDCOAuthPath
      parameters:
      - name: orgId
        required: true
        in: path
        schema:
          type: string
      responses:
        '200':
          description: ''
      security:
      - bearer: []
      tags:
      - CRM Orgs
      summary: Crm orgs controller get SFDCO auth path
      x-summary-source: derived
  /crm-orgs/org/{orgId}:
    get:
      operationId: CrmOrgsController_getOrg
      parameters:
      - name: orgId
        required: true
        in: path
        schema:
          type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
      security:
      - bearer: []
      tags:
      - CRM Orgs
      summary: Crm orgs controller get org
      x-summary-source: derived
    patch:
      operationId: CrmOrgsController_updateOrg
      parameters:
      - name: orgId
        required: true
        in: path
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CrmOrgUpdateDto'
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
      security:
      - bearer: []
      tags:
      - CRM Orgs
      summary: Crm orgs controller update org
      x-summary-source: derived
  /crm-orgs/org/{orgId}/emailTemplates:
    get:
      operationId: CrmOrgsController_getEmailTemplates
      parameters:
      - name: orgId
        required: true
        in: path
        schema:
          type: string
      responses:
        '200':
          description: ''
      security:
      - bearer: []
      tags:
      - CRM Orgs
      summary: Crm orgs controller get email templates
      x-summary-source: derived
  /crm-orgs/org/{orgId}/object-types/{objectName}/child-relationship-names:
    get:
      operationId: CrmOrgsController_getChildRelationshipNames
      parameters:
      - name: orgId
        required: true
        in: path
        schema:
          type: string
      - name: objectName
        required: true
        in: path
        schema:
          type: string
      responses:
        '200':
          description: ''
      security:
      - bearer: []
      tags:
      - CRM Orgs
      summary: Crm orgs controller get child relationship names
      x-summary-source: derived
  /crm-orgs/org/{orgId}/apex-classes:
    get:
      operationId: CrmOrgsController_getApexClasses
      parameters:
      - name: orgId
        required: true
        in: path
        schema:
          type: string
      responses:
        '200':
          description: ''
      security:
      - bearer: []
      tags:
      - CRM Orgs
      summary: Crm orgs controller get apex classes
      x-summary-source: derived
  /crm-orgs/salesforce-oauth2-code:
    post:
      operationId: CrmOrgsController_handleSFDCOAuthAuthorizationCode
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CrmOrgOAuthDto'
      responses:
        '201':
          description: ''
      security:
      - bearer: []
      tags:
      - CRM Orgs
      summary: Crm orgs controller handle SFDCO auth authorization code
      x-summary-source: derived
  /crm-orgs/org/{orgId}/connect-anyway:
    post:
      operationId: CrmOrgsController_connectAnyway
      parameters:
      - name: orgId
        required: true
        in: path
        schema:
          type: string
      responses:
        '201':
          description: ''
      security:
      - bearer: []
      tags:
      - CRM Orgs
      summary: Crm orgs controller connect anyway
      x-summary-source: derived
  /crm-orgs/org/{orgId}/object-types:
    get:
      operationId: CrmOrgsController_getObjectTypes
      parameters:
      - name: orgId
        required: true
        in: path
        schema:
          type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
      security:
      - bearer: []
      summary: returns the available object types in the specified salto workspace of orgId
      tags:
      - CRM Orgs
  /crm-orgs/org/{orgId}/object-types-2:
    get:
      operationId: CrmOrgsController_getObjectTypes2
      parameters:
      - name: orgId
        required: true
        in: path
        schema:
          type: string
      - name: triggerableObjectsOnly
        required: true
        in: query
        schema:
          type: boolean
      - name: updateableObjectsOnly
        required: true
        in: query
        schema:
          type: boolean
      - name: createableObjectsOnly
        required: true
        in: query
        schema:
          type: boolean
      - name: queryableObjectsOnly
        required: true
        in: query
        schema:
          type: boolean
      - name: applyFiltersToBig5
        required: true
        in: query
        schema:
          type: boolean
      - name: countRecordTypes
        required: true
        in: query
        schema:
          type: boolean
      responses:
        '200':
          description: ''
      security:
      - bearer: []
      summary: returns the available object types in the specified salesforce orgId
      tags:
      - CRM Orgs
  /crm-orgs/org/{orgId}/users/member-properties:
    get:
      operationId: CrmOrgsController_listUsersWithMemberProperties
      parameters:
      - name: orgId
        required: true
        in: path
        schema:
          type: string
      - name: includeInactive
        required: true
        in: query
        schema:
          type: boolean
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
      security:
      - bearer: []
      summary: returns all users in org from the managed package
      tags:
      - CRM Orgs
  /crm-orgs/org/{orgId}/users:
    get:
      operationId: CrmOrgsController_listUsers
      parameters:
      - name: orgId
        required: true
        in: path
        schema:
          type: string
      - name: includeInactive
        required: true
        in: query
        schema:
          type: boolean
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
      security:
      - bearer: []
      summary: returns all users in org (managed package not required)
      tags:
      - CRM Orgs
  /crm-orgs/org/{orgId}/users/{userId}/timeOff:
    post:
      operationId: CrmOrgsController_createUserTimeOff
      parameters:
      - name: orgId
        required: true
        in: path
        schema:
          type: string
      - name: userId
        required: true
        in: path
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CrmOrgUserTimeOff'
      responses:
        '201':
          description: ''
      security:
      - bearer: []
      tags:
      - CRM Orgs
      summary: Crm orgs controller create user time off
      x-summary-source: derived
  /crm-orgs/org/{orgId}/users/{userId}/timeOff/{timeOffId}:
    put:
      operationId: CrmOrgsController_updateUserTimeOff
      parameters:
      - name: orgId
        required: true
        in: path
        schema:
          type: string
      - name: userId
        required: true
        in: path
        schema:
          type: string
      - name: timeOffId
        required: true
        in: path
        schema:
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CrmOrgUserTimeOff'
      responses:
        '200':
          description: ''
      security:
      - bearer: []
      tags:
      - CRM Orgs
      summary: Crm orgs controller update user time off
      x-summary-source: derived
    delete:
      operationId: CrmOrgsController_deleteUserTimeOff
      parameters:
      - name: orgId
        required: true
        in: path
        schema:
          type: string
      - name: userId
        required: true
        in: path
        schema:
          type: string
      - name: timeOffId
        required: true
        in: path
        schema:
          type: string
      responses:
        '200':
          description: ''
      security:
      - bearer: []
      tags:
      - CRM Orgs
      summary: Crm orgs controller delete user time off
      x-summary-source: derived
  /crm-orgs/org/{orgId}/queues:
    get:
      operationId: CrmOrgsController_listQueues
      parameters:
      - name: orgId
        required: true
        in: path
        schema:
          type: string
      - name: objectType
        required: true
        in: query
        schema:
          type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
      security:
      - bearer: []
      summary: returns all queues in org
      tags:
      - CRM Orgs
  /crm-orgs/org/{orgId}/funnels-and-record-types:
    get:
      operationId: CrmOrgsController_getAllFunnelsAndRecordTypes
      parameters:
      - name: orgId
        required: true
        in: path
        schema:
          type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FunnelsAndRecordTypesDto'
      security:
      - bearer: []
      tags:
      - CRM Orgs
      summary: Crm orgs controller get all funnels and record types
      x-summary-source: derived
  /crm-orgs/org/{orgId}/objects:
    get:
      operationId: CrmOrgsController_getSalesforceObjectTypes
      parameters:
      - name: orgId
        required: true
        in: path
        schema:
          type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
      security:
      - bearer: []
      tags:
      - CRM Orgs
      summary: Crm orgs controller get salesforce object types
      x-summary-source: derived
  /crm-orgs/org/{orgId}/objects/{objectName}/funnels-and-record-types:
    get:
      operationId: CrmOrgsController_getObjectFunnelsAndRecordTypes
      parameters:
      - name: orgId
        required: true
        in: path
        schema:
          type: string
      - name: objectName
        required: true
        in: path
        schema:
          type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
      security:
      - bearer: []
      tags:
      - CRM Orgs
      summary: Crm orgs controller get object funnels and record types
      x-summary-source: derived
  /crm-orgs/org/{orgId}/objects/{objectName}/record-types/{recordTypeName}:
    get:
      operationId: CrmOrgsController_getLeadingFieldCandidatesForRecordType
      parameters:
      - name: orgId
        required: true
        in: path
        schema:
          type: string
      - name: objectName
        required: true
        in: path
        schema:
          type: string
      - name: recordTypeName
        required: true
        in: path
        schema:
          type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
      security:
      - bearer: []
      tags:
      - CRM Orgs
      summary: Crm orgs controller get leading field candidates for record type
      x-summary-source: derived
  /crm-orgs/org/{orgId}/sweep-permission-set-group-assignment:
    post:
      operationId: CrmOrgsController_assignPermissionSetGroup
      parameters:
      - name: orgId
        required: true
        in: path
        schema:
          type: string
      - name: all
        required: true
        in: query
        schema:
          type: boolean
      responses:
        '201':
          description: ''
      security:
      - bearer: []
      tags:
      - CRM Orgs
      summary: Crm orgs controller assign permission set group
      x-summary-source: derived
components:
  schemas:
    CustomEcaDto:
      type: object
      properties:
        clientId:
          type: string
        clientSecret:
          type: string
      required:
      - clientId
      - clientSecret
    CrmOrgOAuthDto:
      type: object
      properties:
        crmOrgId:
          type: string
        authCode:
          type: string
        isSandbox:
          type: boolean
        isOnboardingFastFetch:
          type: boolean
      required:
      - crmOrgId
      - authCode
      - isSandbox
    CrmOrgUserTimeOff:
      type: object
      properties:
        id:
          type: string
        type:
          enum:
          - TIME_OFF
          - SNOOZE
          type: string
        description:
          type: string
        startDate:
          format: date-time
          type: string
        endDate:
          format: date-time
          type: string
        timezone:
          type: string
      required:
      - id
      - type
      - description
      - startDate
      - endDate
      - timezone
    FunnelsAndRecordTypesDto:
      type: object
      properties:
        orgId:
          type: string
        activeOnly:
          type: boolean
        objectsData:
          type: array
          items:
            type: object
      required:
      - orgId
      - activeOnly
      - objectsData
    CrmOrgCreateDto:
      type: object
      properties:
        name:
          type: string
        platform:
          type: string
          enum:
          - salesforce
        isSandbox:
          type: boolean
        isMain:
          type: boolean
        customEca:
          $ref: '#/components/schemas/CustomEcaDto'
      required:
      - name
      - platform
      - isSandbox
    CrmOrgUpdateDto:
      type: object
      properties:
        name:
          type: string
      required:
      - name
  securitySchemes:
    bearer:
      scheme: bearer
      bearerFormat: JWT
      type: http