Salesforce Sandbox API

Manage sandboxes

Operations 1

POST /data/v64.0/tooling/sobjects/SandboxInfo Salesforce Create/clone Sandbox #

Documentation

Specifications

Schemas & Data

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/salesforce-sandbox-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

salesforce-sandbox-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Salesforce Sandbox API
  description: 'Find the resources you need to start building. '
  contact: {}
  version: '1.0'
servers:
- url: https://login.salesforce.com
  variables: {}
- url: https://id
  variables: {}
- url: https://services
  variables: {}
- url: '{{url}}{{site}}/services/oauth2'
  variables:
    url:
      default: DefaultParameterValue
    site:
      default: DefaultParameterValue
security:
- oauth2:
  - api
tags:
- name: Sandbox
  description: Manage sandboxes
paths:
  /data/v64.0/tooling/sobjects/SandboxInfo:
    parameters: []
    post:
      tags:
      - Sandbox
      summary: Salesforce Create/clone Sandbox
      description: Creates or clones a sandbox. If you wish to clone, fill the SourceId body field with the org Id of the source sandbox.
      operationId: Create/CloneSandbox
      parameters: []
      requestBody:
        description: ''
        content:
          application/json:
            schema:
              allOf:
              - $ref: '#/components/schemas/CreateCloneSandboxRequest'
              - examples:
                - SandboxName: devSandbox
                  LicenseType: DEVELOPER
                  TemplateId: null
                  HistoryDays: 0
                  CopyChatter: false
                  AutoActivate: false
                  ApexClassId: null
                  Description: My new fresh sandbox
                  SourceId: null
              contentMediaType: application/json
            example:
              SandboxName: devSandbox
              LicenseType: DEVELOPER
              TemplateId: null
              HistoryDays: 0
              CopyChatter: false
              AutoActivate: false
              ApexClassId: null
              Description: My new fresh sandbox
              SourceId: null
        required: true
      responses:
        '201':
          description: Created
          headers:
            Date:
              content:
                text/plain:
                  schema:
                    type: string
                    contentMediaType: text/plain
                  example: Mon, 11 Dec 2023 10:44:57 GMT
            Strict-Transport-Security:
              content:
                text/plain:
                  schema:
                    type: string
                    contentMediaType: text/plain
                  example: max-age=63072000; includeSubDomains
            X-Content-Type-Options:
              content:
                text/plain:
                  schema:
                    type: string
                    contentMediaType: text/plain
                  example: nosniff
            X-Robots-Tag:
              content:
                text/plain:
                  schema:
                    type: string
                    contentMediaType: text/plain
                  example: none
            Cache-Control:
              content:
                text/plain:
                  schema:
                    type: string
                    contentMediaType: text/plain
                  example: no-cache,must-revalidate,max-age=0,no-store,private
            Sforce-Limit-Info:
              content:
                text/plain:
                  schema:
                    type: string
                    contentMediaType: text/plain
                  example: api-usage=312/15000
            Location:
              content:
                text/plain:
                  schema:
                    type: string
                    contentMediaType: text/plain
                  example: /services/data/v59.0/tooling/sobjects/SandboxInfo/0GQ4H000000CxSzWAK
            Vary:
              content:
                text/plain:
                  schema:
                    type: string
                    contentMediaType: text/plain
                  example: Accept-Encoding
            Content-Encoding:
              content:
                text/plain:
                  schema:
                    type: string
                    contentMediaType: text/plain
                  example: gzip
            Transfer-Encoding:
              content:
                text/plain:
                  schema:
                    type: string
                    contentMediaType: text/plain
                  example: chunked
          content:
            application/json;charset=UTF-8:
              schema:
                allOf:
                - $ref: '#/components/schemas/CreateSandbox'
                - examples:
                  - id: 0GQ4H000000CxSzWAK
                    success: true
                    errors: []
                    warnings: []
                    infos: []
                contentMediaType: application/json;charset=UTF-8
              example:
                id: 0GQ4H000000CxSzWAK
                success: true
                errors: []
                warnings: []
                infos: []
      deprecated: false
      servers:
      - url: https://services
        variables: {}
      x-api-evangelist-processing:
        PascalCaseOperationSummaries: true
        ChooseTags: true
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
components:
  schemas:
    CreateSandbox:
      title: CreateSandbox
      required:
      - id
      - success
      - errors
      - warnings
      - infos
      type: object
      properties:
        id:
          type: string
          example: abc123
        success:
          type: boolean
          example: true
        errors:
          type: array
          items:
            type: string
          description: ''
          example: []
        warnings:
          type: array
          items:
            type: string
          description: ''
          example: []
        infos:
          type: array
          items:
            type: string
          description: ''
          example: []
      examples:
      - id: 0GQ4H000000CxSzWAK
        success: true
        errors: []
        warnings: []
        infos: []
    CreateCloneSandboxRequest:
      title: CreateCloneSandboxRequest
      required:
      - SandboxName
      - LicenseType
      - TemplateId
      - HistoryDays
      - CopyChatter
      - AutoActivate
      - ApexClassId
      - Description
      - SourceId
      type: object
      properties:
        SandboxName:
          type: string
          example: example_value
        LicenseType:
          type: string
          example: example_value
        TemplateId:
          type:
          - string
          - 'null'
          example: '500123'
        HistoryDays:
          type: integer
          contentEncoding: int32
          example: 10
        CopyChatter:
          type: boolean
          example: true
        AutoActivate:
          type: boolean
          example: true
        ApexClassId:
          type:
          - string
          - 'null'
          example: '500123'
        Description:
          type: string
          example: A sample description.
        SourceId:
          type:
          - string
          - 'null'
          example: '500123'
      examples:
      - SandboxName: devSandbox
        LicenseType: DEVELOPER
        TemplateId: null
        HistoryDays: 0
        CopyChatter: false
        AutoActivate: false
        ApexClassId: null
        Description: My new fresh sandbox
        SourceId: null
  securitySchemes:
    oauth2:
      type: oauth2
      flows:
        implicit:
          authorizationUrl: '{DefaultParameterValue}{DefaultParameterValue}/services/oauth2/authorize'
          scopes:
            api: ''