Skip to main content
GET
https://{tenantDomain}/api/v2
/
jobs
/
{id}
C#
using Auth0.ManagementApi;
using System.Threading.Tasks;

public partial class Examples
{
    public async Task Example() {
        var client = new ManagementClient(
            token: "<token>"
        );

        await client.Jobs.GetAsync(
            "id"
        );
    }

}
package example

import (
context "context"

client "github.com/auth0/go-auth0/management/management/client"
option "github.com/auth0/go-auth0/management/management/option"
)

func do() {
client := client.NewClient(
option.WithToken(
"<token>",
),
)
client.Jobs.Get(
context.TODO(),
"id",
)
}
package com.example.usage;

import com.auth0.client.mgmt.ManagementApi;

public class Example {
public static void main(String[] args) {
ManagementApi client = ManagementApi
.builder()
.token("<token>")
.build();

client.jobs().get("id");
}
}
<?php

namespace Example;

use Auth0\SDK\API\Management\Management;

$client = new Management(
token: '<token>',
);
$client->jobs->get(
'id',
);
from auth0.management import ManagementClient

client = ManagementClient(
token="<token>",
)

client.jobs.get(
id="id",
)
require "auth0"

client = Auth0::Management.new(token: "<token>")

client.jobs.get(id: "id")
import { ManagementClient } from "auth0";

async function main() {
const client = new ManagementClient({
token: "<token>",
});
await client.jobs.get("id");
}
main();
import { ManagementClient } from "auth0";

async function main() {
const client = new ManagementClient({
token: "<token>",
});
await client.jobs.get("id");
}
main();
curl --request GET \
--url https://{tenantDomain}/api/v2/jobs/{id} \
--header 'Authorization: Bearer <token>'
{
  "status": "pending",
  "type": "users_import",
  "id": "job_0000000000000001",
  "created_at": "<string>",
  "connection_id": "con_0000000000000001",
  "location": "<string>",
  "percentage_done": 123,
  "time_left_seconds": 123,
  "status_details": "<string>",
  "summary": {
    "failed": 0,
    "updated": 0,
    "inserted": 0,
    "total": 0
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

ID of the job.

Response

Job retrieved successfully.

status
string
default:pending
required

Status of this job.

type
string
default:users_import
required

Type of job this is.

id
string
default:job_0000000000000001
required

ID of this job.

created_at
string

When this job was created.

connection_id
string
default:con_0000000000000001

connection_id of the connection this job uses.

location
string

URL to download the result of this job.

percentage_done
integer

Completion percentage of this job.

time_left_seconds
integer

Estimated time remaining before job completes.

format
enum<string>

Format of the file. Must be json or csv.

Available options:
json,
csv
status_details
string

Status details.

summary
object

Job execution summary.