Download OpenAPI specification:Download
Move your app forward with the OwnBackup API
Authenticate a user by email and password
email required | string |
password required | string Password |
{- "session_id": "skdjg1skdhgk41895yhdhg"
}
Get a list of all services.
X-SESSION-ID required | string Session id |
[- {
- "archived": true,
- "provider": "SaleForce Data",
- "num_items": 1,
- "displayed_name": "admin@dev37101",
- "return_message": "",
- "total_size": 6,
- "org_id": "00DK000000XJu1CMAT",
- "id": 300008,
- "return_code": 1,
- "last_backup": "2018-04-09T10:30:42.000Z",
- "enabled": 1,
- "status": "ARCHIVED"
}
]
Get a specific service by Service id
service_id required | number <int32> Service id |
X-SESSION-ID required | string Session id |
{- "archived": true,
- "provider": "SaleForce Data",
- "num_items": 1,
- "displayed_name": "admin@dev37101",
- "return_message": "",
- "total_size": 6,
- "org_id": "00DK000000XJu1CMAT",
- "id": 300008,
- "return_code": 1,
- "last_backup": "2018-04-09T10:30:42.000Z",
- "enabled": 1,
- "status": "ARCHIVED"
}
Start a backup for specific objects manually now by Service id.
service_id required | number <int32> service id |
X-SESSION-ID required | string Session id |
list_of_objects required | Array of strings Objects that are to be backed up |
{ }
Get a list of all available backups for a given service.
service_id required | number <int32> Service id |
X-SESSION-ID required | string Session id |
[- {
- "id": 420519,
- "num_sections": 23,
- "num_updated_items": 1,
- "num_sections_error": 9,
- "num_api_calls": 2314,
- "num_bulk_api_batches": 1000,
- "num_inserted_items": 6,
- "num_sections_info": 5,
- "num_sections_warning": 2,
- "num_sections_ok": 7,
- "num_deleted_items": 5,
- "trigger_type": "scheduled",
- "completed_at": "2018-04-09T10:39:02.000Z",
- "status": "OK"
}
]
Get a specific backup by the Service id and Backup id. Parameter backup_id can be 'last'
service_id required | number <int32> Service id |
backup_id required | number <int32> backup id |
X-SESSION-ID required | string Session id |
{- "id": 420519,
- "num_sections": 23,
- "num_updated_items": 1,
- "num_sections_error": 9,
- "num_api_calls": 2314,
- "num_bulk_api_batches": 1000,
- "num_inserted_items": 6,
- "num_sections_info": 5,
- "num_sections_warning": 2,
- "num_sections_ok": 7,
- "num_deleted_items": 5,
- "trigger_type": "scheduled",
- "completed_at": "2018-04-09T10:39:02.000Z",
- "status": "OK"
}
Export a data backup into CSV or SQL by Service id and Backup id. Parameter backup_id can be 'last'
service_id required | number <int32> Service id |
backup_id required | number <int32> Backup id |
X-SESSION-ID required | string Session id |
export_format required | string Enum: "csv" "sql" Required export format. |
include_attachments required | boolean Should the export include attachments. e.g true, false |
sql_dialect | string Enum: "mysql" "oracle" "postgresql" "mssql" SQL dialect to use when exporting to SQL. |
objects | Array of strings Object names to export, if empty all objects |
{- "job_id": 30141
}
Export a data backup to Mysql/S3 Endpoint by Service id and Backup id. Parameter backup_id can be 'last'
service_id required | number <int32> Service id |
backup_id required | number <int32> Backup id |
X-SESSION-ID required | string Session id |
endpoint_id required | integer <int32> Required endpoint id. You can get it from endpoints page. |
objects | Array of strings Object names to export, if empty all objects |
{- "job_id": 30141
}
Get list of objects in a backup by Service id and Backup id. Parameter backup_id can be 'last'.
The following fields: download_link
, download_added_link
, download_removed_link
and download_changed_link
contain links to the associated data of that backup, stored in CSV format. To download these CSVs, issue an HTTPS GET request (using a valid session) to these URLs.
service_id required | number <int32> Service id |
backup_id required | number <int32> backup id |
X-SESSION-ID required | string Session id |
[- {
- "id": 82193842,
- "download_removed_link": "https://server.ownbackup.com/get_file_from_backup.fcgi/services/300017/backups/420149/sections/82193842/removed",
- "download_changed_link": "https://server.ownbackup.com/get_file_from_backup.fcgi/services/300017/backups/420149/sections/82193842/changed",
- "num_api_calls": 21,
- "num_bulk_api_batches": 100,
- "num_updated_items": 1,
- "num_deleted_items": 5,
- "num_inserted_items": 6,
- "num_items": 12,
- "name": "summary",
- "message": "",
- "status": "ok"
}
]
submitting a GDPR rectify request
service_id required | number <int32> Service id |
X-SESSION-ID required | string Session id |
record_id required | string Required the id of the relevant record |
table_name required | string name of the table |
field required | string the field to rectify |
value required | string the new value |
comment | string comments |
{- "id": 30141
}
submitting a GDPR forget request
service_id required | number <int32> Service id |
X-SESSION-ID required | string Session id |
record_id required | string Required the id of the relevant record |
table_name required | string name of the table |
comment | string comments |
{- "id": 30141
}
Get the account event history from the beginning of time (default route) or all events that follows a specific event (use
from | number <int32> Event id which will filter all of the preceding events (self included), a way to remove history |
X-SESSION-ID required | string Session id |
[- {
- "created_at": "Wed, 12 Dec 2018 07:57:51 GMT",
- "event_id": 11111,
- "ip_address": "127.0.0.1",
- "key": "session.create",
- "parameters": { },
- "source": "web app",
- "user_email": "username@gmail.com",
- "user_id": 111
}
]
Get information for the specified seed.
seed_id required | string Unique OwnBackup identifier of the seed to get the log of. |
X-SESSION-ID required | string Session id |
{- "created_at": "2020-05-11T11:19:10.000Z",
- "delete_fail_records": 0,
- "delete_success_records": 0,
- "dest_service_id": 4,
- "disable_automations": false,
- "duplicated_records": 0,
- "finished_at": "2020-05-11T11:19:53.000Z",
- "id": 1,
- "insert_fail_records": 0,
- "insert_success_records": 5,
- "progress": 100,
- "seed_id": 731169459,
- "seeding_method": "add",
- "started_at": "2020-05-11T11:19:10.000Z",
- "status": "COMPLETED",
- "template": 1,
- "total_delete_records": 0,
- "total_insert_records": 5
}
Start a new seed from the template's source service to the specified destination service.
template_id required | number <int32> Unique OwnBackup identifier of the template to seed from. |
X-SESSION-ID required | string Session id |
destination required | number <int32> Unique OwnBackup identifier of the destination service for the seed. |
seeding_method required | string Enum: "clean_and_insert" "incremental" "upsert" Seeding method. Please notice that clean_and_insert method is not available for full sandboxes |
disable_automations required | boolean Should the seed automations be disabled during the seed. |
object (SBS_Automations) |
{ "destination": 70001, "seeding_method": "incremental", "disable_automations": true, "automations_to_disable": { "ApexTrigger": [ "Account.BeforeInsert" ], "ValidationRule": [ "Account.CountryValidation" ] } }
Get active automations names by automation type, of the specified service (excluding automations from managed packages, since they cannot be disabled by salesforce).
service_id required | number <int32> Service id |
X-SESSION-ID required | string Session id |
{- "ApexTrigger": [
- "Account.BeforeInsert"
], - "ValidationRule": [
- "Account.CountryValidation",
- "Opportunity.ReasonRequired"
]
}