openapi: 3.1.0 info: title: Salesforce Bulk API 2.0 Abort QueryAll API description: 'Salesforce Bulk API 2.0 is a simplified, REST-based interface for bulk data operations that improves on the original Bulk API. It uses a straightforward job model and supports CSV format for ingest and query jobs, enabling processing of millions of records asynchronously. ' version: v63.0 contact: name: Salesforce Developers url: https://developer.salesforce.com/ license: name: Salesforce Developer Terms url: https://www.salesforce.com/company/legal/agreements/ servers: - url: https://{instance}.salesforce.com/services/data/v{version}/jobs description: Salesforce Bulk API 2.0 jobs endpoint variables: instance: default: yourInstance description: 'The Salesforce instance identifier (e.g., na1, eu3, or a My Domain subdomain like mycompany). ' version: default: '63.0' description: 'The Salesforce API version number (e.g., 63.0). Use the latest supported version for new integrations. ' security: - BearerAuth: [] tags: - name: QueryAll description: 'Execute SOQL queryAll to include soft-deleted and archived records in results. ' paths: /queryAll: post: operationId: executeQueryAll summary: Salesforce Execute a Queryall (includes Deleted Records) description: 'Executes a SOQL query that includes soft-deleted records and archived records in the results, unlike the standard /query endpoint which excludes them. Use this endpoint for data recovery, audit trails, or replication scenarios where deleted records must be included. ' tags: - QueryAll requestBody: required: true description: SOQL query to execute, including deleted and archived records. content: application/json: schema: type: object required: - q properties: q: type: string description: 'The SOQL query string to execute. Deleted and archived records matching the query criteria will be included in results. ' example: SELECT Id, Name, IsDeleted FROM Contact WHERE IsDeleted = true examples: ExecutequeryallRequestExample: summary: Default executeQueryAll request x-microcks-default: true value: q: example_value responses: '200': description: 'Query results including deleted and archived records, with totalSize, done flag, and records array. ' content: application/json: schema: $ref: '#/components/schemas/QueryResult' examples: Executequeryall200Example: summary: Default executeQueryAll 200 response x-microcks-default: true value: totalSize: 42 done: true nextRecordsUrl: https://www.example.com records: - attributes: {} Id: abc123 '400': description: Bad request. Invalid SOQL syntax or query validation failed. content: application/json: schema: $ref: '#/components/schemas/Error' examples: Executequeryall400Example: summary: Default executeQueryAll 400 response x-microcks-default: true value: message: example_value errorCode: example_value fields: - example_value '401': description: Unauthorized. Invalid or expired OAuth token. content: application/json: schema: $ref: '#/components/schemas/Error' examples: Executequeryall401Example: summary: Default executeQueryAll 401 response x-microcks-default: true value: message: example_value errorCode: example_value fields: - example_value x-microcks-operation: delay: 0 dispatcher: FALLBACK components: schemas: SObjectRecord: type: object description: 'A Salesforce SObject record. Contains an attributes object describing the record type and URL, plus any number of field name/value pairs depending on the object type. ' required: - attributes properties: attributes: type: object description: 'Metadata attributes for this SObject record, including its type and REST API URL. ' required: - type properties: type: type: string description: The API name of the SObject type (e.g., Account, Contact). url: type: string format: uri description: The REST API URL for this specific record. example: example_value Id: type: string description: The 18-character globally unique Salesforce record ID. minLength: 15 maxLength: 18 example: abc123 additionalProperties: true QueryResult: type: object description: 'The result of a SOQL query, containing the matching records and pagination metadata. ' required: - totalSize - done - records properties: totalSize: type: integer description: 'The total number of records matching the query. May be larger than the number of records in the current page if the result is paginated. ' example: 42 done: type: boolean description: 'Whether all query results have been returned. If false, use nextRecordsUrl to retrieve the next page. ' example: true nextRecordsUrl: type: string format: uri description: 'URL to retrieve the next page of results. Only present when done is false. ' example: https://www.example.com records: type: array description: 'Array of SObject records matching the query. May be a partial result if the total exceeds the page size. ' items: $ref: '#/components/schemas/SObjectRecord' example: [] Error: type: object description: 'An error response from the Salesforce REST API, describing the problem with the request. ' properties: message: type: string description: Human-readable description of the error. example: example_value errorCode: type: string description: 'Salesforce error code (e.g., MALFORMED_QUERY, INVALID_FIELD, REQUIRED_FIELD_MISSING). ' example: example_value fields: type: array description: 'List of field names related to the error, if applicable (e.g., for field validation errors). ' items: type: string example: [] securitySchemes: BearerAuth: type: http scheme: bearer description: 'OAuth 2.0 Bearer token obtained from the Salesforce OAuth 2.0 token endpoint. Include this token in the Authorization header as "Bearer {access_token}". '