---
title: "POST /#X-Amz-Target=DeviceFarm_20150623.CreateTestGridUrl"
method: POST
path: "/#X-Amz-Target=DeviceFarm_20150623.CreateTestGridUrl"
---

# POST /#X-Amz-Target=DeviceFarm_20150623.CreateTestGridUrl

`POST /#X-Amz-Target=DeviceFarm_20150623.CreateTestGridUrl`

Creates a signed, short-term URL that can be passed to a Selenium <code>RemoteWebDriver</code> constructor.

## Headers

- `X-Amz-Target` 'DeviceFarm_20150623.CreateTestGridUrl', required

## Request body

- CreateTestGridUrlRequest
  - `projectArn` string, required — ARN (from <a>CreateTestGridProject</a> or <a>ListTestGridProjects</a>) to associate with the short-term URL.
  - `expiresInSeconds` integer, required — Lifetime, in seconds, of the URL.

## Response `200`

Success

- CreateTestGridUrlResult
  - `url` string, password — A signed URL, expiring in <a>CreateTestGridUrlRequest$expiresInSeconds</a> seconds, to be passed to a <code>RemoteWebDriver</code>.
  - `expires` string, date-time — The number of seconds the URL from <a>CreateTestGridUrlResult$url</a> stays active.

## Other responses

- `480` — NotFoundException
- `481` — ArgumentException
- `482` — InternalServiceException

---

[API](https://skmtc.net/aws/apis/devicefarm.md) · [All operations](https://skmtc.net/aws/apis/devicefarm/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aws/devicefarm/versions/a20834382f29/schema)
