---
name: braket
description: "Braket API skill. Use when working with Braket for job, quantum-task, device. Covers 13 endpoints."
version: 1.0.0
generator: lapsh
---

# Braket
API version: 2019-09-01

## Auth
AWS SigV4

## Base URL
Not specified.

## Setup
1. Configure auth: AWS SigV4
2. GET /device/{deviceArn} -- retrieves the devices available in amazon braket.  for backwards compatibility with older versions of braketschemas, openqasm information is omitted from getdevice api calls. to get this information the user-agent needs to present a recent version of the braketschemas (1.8.0 or later). the braket sdk automatically reports this for you. if you do not see openqasm results in the getdevice response when using a braket sdk, you may need to set aws_execution_env environment variable to configure user-agent. see the code examples provided below for how to do this for the aws cli, boto3, and the go, java, and javascript/typescript sdks.
3. POST /job -- create first job

## Endpoints
13 endpoints across 7 groups. See references/api-spec.lap for full details.

### Job
| Method | Path | Description |
|--------|------|-------------|
| PUT | /job/{jobArn}/cancel | Cancels an Amazon Braket job. |
| POST | /job | Creates an Amazon Braket job. |
| GET | /job/{jobArn} | Retrieves the specified Amazon Braket job. |

### Quantum-task
| Method | Path | Description |
|--------|------|-------------|
| PUT | /quantum-task/{quantumTaskArn}/cancel | Cancels the specified task. |
| POST | /quantum-task | Creates a quantum task. |
| GET | /quantum-task/{quantumTaskArn} | Retrieves the specified quantum task. |

### Device
| Method | Path | Description |
|--------|------|-------------|
| GET | /device/{deviceArn} | Retrieves the devices available in Amazon Braket.  For backwards compatibility with older versions of BraketSchemas, OpenQASM information is omitted from GetDevice API calls. To get this information the user-agent needs to present a recent version of the BraketSchemas (1.8.0 or later). The Braket SDK automatically reports this for you. If you do not see OpenQASM results in the GetDevice response when using a Braket SDK, you may need to set AWS_EXECUTION_ENV environment variable to configure user-agent. See the code examples provided below for how to do this for the AWS CLI, Boto3, and the Go, Java, and JavaScript/TypeScript SDKs. |

### Tags
| Method | Path | Description |
|--------|------|-------------|
| GET | /tags/{resourceArn} | Shows the tags associated with this resource. |
| POST | /tags/{resourceArn} | Add a tag to the specified resource. |
| DELETE | /tags/{resourceArn} | Remove tags from a resource. |

### Devices
| Method | Path | Description |
|--------|------|-------------|
| POST | /devices | Searches for devices using the specified filters. |

### Jobs
| Method | Path | Description |
|--------|------|-------------|
| POST | /jobs | Searches for Amazon Braket jobs that match the specified filter values. |

### Quantum-tasks
| Method | Path | Description |
|--------|------|-------------|
| POST | /quantum-tasks | Searches for tasks that match the specified filter values. |

## Common Questions
Match user requests to endpoints in references/api-spec.lap. Key patterns:
- "Create a job?" -> POST /job
- "Create a quantum-task?" -> POST /quantum-task
- "Get device details?" -> GET /device/{deviceArn}
- "Get job details?" -> GET /job/{jobArn}
- "Get quantum-task details?" -> GET /quantum-task/{quantumTaskArn}
- "Get tag details?" -> GET /tags/{resourceArn}
- "Create a device?" -> POST /devices
- "Delete a tag?" -> DELETE /tags/{resourceArn}
- "How to authenticate?" -> See Auth section above

## Response Tips
- Check response schemas in references/api-spec.lap for field details
- Create/update endpoints return the modified resource on success

## References
- Full spec: See references/api-spec.lap for complete endpoint details, parameter tables, and response schemas

> Generated from the official API spec by [LAP](https://lap.sh)
