# QuickStart

```javascript
import axios from "axios"

(async () => {
    // Configuration
    const API_URL = '';
    const config = {
        headers: {
            'X-Api-Key-Id': 'your-apiKey-uuid',
            'X-Api-Key': 'your-apiKey-secret',
            'Content-Type': 'application/json'
        }
    };

    try {
        // Create a random fingerprint (OPTIONAL)
        const fingerprintResponse = await axios.post(
            `${API_URL}/api/v1/fingerprints/random`,
            {
                enviornmentUUID: 'your-enviornment-uuid'
            },
            config
        );
        const fingerprintUUID = fingerprintResponse.data.fingerprintUUID;

        // Create Session
        config.headers["X-Fingerprint-Secret"] = fingerprintResponse.data.fingerprintSecret
        const sessionResponse = await axios.post(
            `${API_URL}/api/v1/sessions`,
            {
                fingerprintUUID,
                leaseTime: 10, // 10 minutes
                isVncEnabled: false,
                driver: 'api'
            },
            config
        );
        const sessionUUID = sessionResponse.data.sessionUUID;

        // Do some stuff
        console.log('Session created:', sessionUUID);
        
        // End Session
        await axios.delete(
            `${API_URL}/api/v1/sessions/${sessionUUID}`,
            config
        );
        console.log('Session ended');

    } catch (error) {
        console.error('Error:', error.response?.data || error.message);
    }
})();
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://dev-docs.tasknet.co/getting-started/quickstart.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
