---
updatedAt: 2025-05-19T20:48:24.000Z
agentTools:
  projectIndex: https://api.atsanywhere.io/llms.txt
---

# Make a Request

You can make an API request using the programming language of your choice or use one of our SDK’s for convenience. Here are some request examples using a few popular web development languages.

# Request URL

<HTMLBlock>{`
<div>
  <table class="refTable">
    <thead> 
      <th colspan="2", text-align="center">cURL</th>
    </thead>
    <tbody>
      <tr><td>https://{API Key}:{Password}@api.atsanywhere.com/api/{API Endpoint}</td>
      </tr>
    </tbody>
  </table>
</div>

<style>
  table.refTable {
    width: 100%;
    background-color: #FFFFFF;
    text-align: left;
    line-height: 1.6;
    color: #737C84;
    padding: 10px;
    font-family: proxima nova; sans-serif;
    border-collapse: collapse;
  }
  table.refTable td, table.refTable th {
    padding: 3px 2px;
    column-width: auto;
  }
  table.refTable tr {
    padding: 5px;
    font-size: 14px;
  }
  table.refTable thead {
    background: #00C7C6;
  }
  table.refTable thead th {
    font-size: 15px;
    font-weight: light;
    color: #FFFFFF;
    padding: 6px;
    border-left: 2px solid #00C7C6;
  }
</style>
`}</HTMLBlock>

# URL Placeholders

<HTMLBlock>{`
<div>
  <table class="refTable">
    <thead>
      <tr>
      <th width="25%">URL Placeholders</th>
      <th width="75%">Description</th>
      </tr>
    </thead>
    <tbody>
   		 <tr>
		    <td>{ API Key}</td>
         <td>API Key from “Account Details -> API” page.</td>
      </tr>
      <tr>
		    <td>{ Password }</td>
         <td>API Password from “Account Details -> API” page.</td>
      </tr>
       <tr>
		    <td>{ API Endpoint }</td>
         <td>This is a placeholder for the endpoint you want to make a request to.</td>
      </tr>
    </tbody>
  </table>
</div>

<style>
  table.refTable {
    width: 100%;
    background-color: #FFFFFF;
    text-align: left;
    line-height: 1.6;
    color: #737C84;
    padding: 10px;
    font-family: proxima nova; sans-serif;
    border-collapse: collapse;
  }
  table.refTable td, table.refTable th {
    padding: 3px 2px;
    column-width: auto;
  }
  table.refTable tr {
    padding: 5px;
    font-size: 14px;
  }
  table.refTable thead {
    background: #00C7C6;
  }
  table.refTable thead th {
    font-size: 15px;
    font-weight: light;
    color: #FFFFFF;
    padding: 6px;
    border-left: 2px solid #00C7C6;
  }
</style>
`}</HTMLBlock>

# Node.js

```javascript
const https = require('https');
const api_key = '04b23c4a-934b-11e7-abc4-cec278b6b50a',
    api_pass = 'ff926a28-599b-4869-b620-a0b2ca905cfb',
    options = {
        hostname: '${api_key}:${api_pass}@api.atsanywhere.com/api/jobs'
        method: 'GET',
    };
https.request(options, (res) => {
    res.setEncoding('utf8');
    res.on('data', (chunk) => {
        console.log(`BODY: ${chunk}`);
    });
    res.on('end', () => {
        console.log('No more data in response.');
    });
});
```

# Ruby

```ruby
require 'net/http'

api_key = "04b23c4a-934b-11e7-abc4-cec278b6b50a"
api_pass = "ff926a28-599b-4869-b620-a0b2ca905cfb"
uri = "https://#{api_key}:#{api_pass}@api.atsanywhere.com/api/jobs"

Net::HTTP.get(uri)
```