Step 2 - Retrieve List of Jobs
Overview
Once you've sent your migration file via SFTP, you can retrieve a list of all jobs created from the clientId specified within the migration job file.
Fetch Aerosync Token
Fetching statuses on the migration jobs require a separate Aerosync-specific token, different from the tokens used for payment APIs (user creation, transactions).
Staging - POST [<https://api.staging.aerosync.com/v1/token](https://api.staging.aerosync.com/v1/token)>
Production - POST [<https://api.aerosync.com/v1/token](https://api.aerosync.com/v1/token)>
curl --location 'https://api.aerosync.com/v1/token' \
--header 'Content-Type: application/json' \
--data '{
"apiKey":"test1",
"apiSecret": "test1"
}'
Response Example
{
"status": "success",
"statusCode": 200,
"TTL": "1800",
"token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJqdGkiOiIxYTJlNTBkMi01OWFlLTQ5OTktYjMyZC00YTQ5YjM3YmMyN2EiLCJleHAiOjE3MTUyMDIyNjYsIkNsaWVudElkIjoiMWYyMTIzNTYtZmNlYi00MmViLWFiZTQtYWE5MjJhY2YyY2Q1IiwiQ2xpZW50TmFtZSI6IkFlcm9wYXkgRGV2In0.4LUNZB5gIAsJi9niz65w4Qr6n_qo17UlefunJ2SJM7w"
}
Retrieve List of Jobs
Staging - POST <https://api.staging.aerosync.com/v1/clients/{client_id}/jobs
Production - POST <https://api.aerosync.com/v1/clients/{client_id}/jobs
Request Parameters
Parameter | Required? | Type | Description |
---|---|---|---|
client_id | Yes | string | Specified within the migration file |
Request Example
GET https://api.staging.aerosync.com/v1/clients/{client_id}/jobs
Authorization: Bearer {token}
Response Example
{
"status": "success",
"statusCode": 200,
"client_id": "MyClientId",
"jobs": [
{
"job_id": "3ee23395-577e-465c-baea-e2df851cfafc",
"created_at": "2024-06-19T14:04:32.567953+00:00"
}
]
}
Updated 6 days ago
What’s Next