# Test Results

## List test results[​](#list-test-results "Direct link to List test results")

GET/api/v1/test-results

Test results in the selected organization, visible to every member of it. The organization is chosen by the X-Organization-Id header, or the organization the API key is bound to, otherwise the caller's default organization.

Header parameters

`X-Organization-Id`string

Selects which of the caller's organizations the request acts on. When omitted, the caller's default organization is used.

Returns

`object`stringrequired

`data`arrayrequired

Show child attributes

`id`string · uuidrequired

`name`stringrequired

`userAgent`stringrequired

`createdAt`string · date-timerequired

Request

```
curl https://api.mobilenexthq.com/api/v1/test-results \

  -X GET \

  -H 'Authorization: Bearer mob_...'
```

Response

200401

Paginated list of test results, newest first

```
{

  "object": "list",

  "data": [

    {

      "id": "string",

      "name": "Smoke suite",

      "userAgent": "mobilewright/0.0.39",

      "createdAt": "2026-01-01T00:00:00Z"

    }

  ]

}
```

## Create a test result[​](#create-test-result "Direct link to Create a test result")

POST/api/v1/test-results

Called by the mobilewright reporter once a test run completes. Returns the created record including its id, which is used for subsequent asset uploads. The result is filed under the organization the API key is bound to, or the X-Organization-Id header, otherwise the caller's default organization.

Header parameters

`X-Organization-Id`string

Selects which of the caller's organizations the request acts on. When omitted, the caller's default organization is used.

Body parameters

`name`stringrequired

Human-readable name for this test run

`userAgent`stringrequired

Reporter name and version

Returns

`id`string · uuidrequired

`name`stringrequired

`userAgent`stringrequired

`createdAt`string · date-timerequired

Request

```
curl https://api.mobilenexthq.com/api/v1/test-results \

  -X POST \

  -H 'Authorization: Bearer mob_...' \

  -H 'Content-Type: application/json' \

  -d '{"name":"Smoke suite","userAgent":"mobilewright/0.0.39"}'
```

Response

201400401

Test result created

```
{

  "id": "string",

  "name": "Smoke suite",

  "userAgent": "mobilewright/0.0.39",

  "createdAt": "2026-01-01T00:00:00Z"

}
```

## Get a test result[​](#get-test-result "Direct link to Get a test result")

GET/api/v1/test-results/{testResultId}

Path parameters

`testResultId`string · uuidrequired

Test result UUID

Header parameters

`X-Organization-Id`string

Selects which of the caller's organizations the request acts on. When omitted, the caller's default organization is used.

Returns

`id`string · uuidrequired

`name`stringrequired

`userAgent`stringrequired

`createdAt`string · date-timerequired

Request

```
curl https://api.mobilenexthq.com/api/v1/test-results/{testResultId} \

  -X GET \

  -H 'Authorization: Bearer mob_...'
```

Response

200401404

Test result detail

```
{

  "id": "string",

  "name": "Smoke suite",

  "userAgent": "mobilewright/0.0.39",

  "createdAt": "2026-01-01T00:00:00Z"

}
```

## List assets for a test result[​](#list-test-result-assets "Direct link to List assets for a test result")

GET/api/v1/test-results/{testResultId}/assets

Returns all uploaded assets (e.g. trace.zip, screenshots.zip) for this test result.

Path parameters

`testResultId`string · uuidrequired

Test result UUID

Header parameters

`X-Organization-Id`string

Selects which of the caller's organizations the request acts on. When omitted, the caller's default organization is used.

Returns

`object`stringrequired

`data`arrayrequired

Show child attributes

`id`string · uuidrequired

`name`stringrequired

`contentType`stringrequired

`size`integerrequired

File size in bytes

`createdAt`string · date-timerequired

Request

```
curl https://api.mobilenexthq.com/api/v1/test-results/{testResultId}/assets \

  -X GET \

  -H 'Authorization: Bearer mob_...'
```

Response

200401404

List of assets

```
{

  "object": "list",

  "data": [

    {

      "id": "string",

      "name": "trace.zip",

      "contentType": "application/zip",

      "size": 0,

      "createdAt": "2026-01-01T00:00:00Z"

    }

  ]

}
```

## Upload an asset[​](#upload-test-result-asset "Direct link to Upload an asset")

POST/api/v1/test-results/{testResultId}/assets

Uploads a binary asset attached to a test result. Use multipart/form-data with the file and its name. In future, a presignedUrl parameter may be added to return an S3 pre-signed URL instead of accepting the upload directly.

Path parameters

`testResultId`string · uuidrequired

Test result UUID

Header parameters

`X-Organization-Id`string

Selects which of the caller's organizations the request acts on. When omitted, the caller's default organization is used.

Returns

`id`string · uuidrequired

`name`stringrequired

`contentType`stringrequired

`size`integerrequired

File size in bytes

`createdAt`string · date-timerequired

Request

```
curl https://api.mobilenexthq.com/api/v1/test-results/{testResultId}/assets \

  -X POST \

  -H 'Authorization: Bearer mob_...'
```

Response

201401404

Asset uploaded

```
{

  "id": "string",

  "name": "trace.zip",

  "contentType": "application/zip",

  "size": 0,

  "createdAt": "2026-01-01T00:00:00Z"

}
```

## Download an asset[​](#download-test-result-asset "Direct link to Download an asset")

GET/api/v1/test-results/{testResultId}/assets/{assetId}

Streams the raw binary content of a specific asset.

Path parameters

`testResultId`string · uuidrequired

Test result UUID

`assetId`string · uuidrequired

Asset UUID

Header parameters

`X-Organization-Id`string

Selects which of the caller's organizations the request acts on. When omitted, the caller's default organization is used.

Request

```
curl https://api.mobilenexthq.com/api/v1/test-results/{testResultId}/assets/{assetId} \

  -X GET \

  -H 'Authorization: Bearer mob_...'
```

Response

200401404

Raw asset content

```
// No response body
```
