Sweep CRM Orgs API

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

Operations 23

GET /crm-orgs #
POST /crm-orgs/new #
GET /crm-orgs/org/{orgId}/salesforce-oauth #
GET /crm-orgs/org/{orgId} #
PATCH /crm-orgs/org/{orgId} #
GET /crm-orgs/org/{orgId}/emailTemplates #
GET /crm-orgs/org/{orgId}/object-types/{objectName}/child-relationship-names #
GET /crm-orgs/org/{orgId}/apex-classes #
POST /crm-orgs/salesforce-oauth2-code #
POST /crm-orgs/org/{orgId}/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 #
PUT /crm-orgs/org/{orgId}/users/{userId}/timeOff/{timeOffId} #
DELETE /crm-orgs/org/{orgId}/users/{userId}/timeOff/{timeOffId} #
GET /crm-orgs/org/{orgId}/queues returns all queues in org #
GET /crm-orgs/org/{orgId}/funnels-and-record-types #
GET /crm-orgs/org/{orgId}/objects #
GET /crm-orgs/org/{orgId}/objects/{objectName}/funnels-and-record-types #
GET /crm-orgs/org/{orgId}/objects/{objectName}/record-types/{recordTypeName} #
POST /crm-orgs/org/{orgId}/sweep-permission-set-group-assignment #

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 email required.

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
  /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
  /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
  /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
    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
  /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
  /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
  /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
  /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
  /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
  /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
  /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
    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
  /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
  /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
  /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
  /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
  /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
components:
  schemas:
    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
    FunnelsAndRecordTypesDto:
      type: object
      properties:
        orgId:
          type: string
        activeOnly:
          type: boolean
        objectsData:
          type: array
          items:
            type: object
      required:
      - orgId
      - activeOnly
      - objectsData
    CrmOrgUpdateDto:
      type: object
      properties:
        name:
          type: string
      required:
      - name
    CustomEcaDto:
      type: object
      properties:
        clientId:
          type: string
        clientSecret:
          type: string
      required:
      - clientId
      - clientSecret
    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
    CrmOrgOAuthDto:
      type: object
      properties:
        crmOrgId:
          type: string
        authCode:
          type: string
        isSandbox:
          type: boolean
        isOnboardingFastFetch:
          type: boolean
      required:
      - crmOrgId
      - authCode
      - isSandbox
  securitySchemes:
    bearer:
      scheme: bearer
      bearerFormat: JWT
      type: http