> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.confirm.global/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.confirm.global/_mcp/server.

# Create a location

POST https://api.confirm.global/partner/v1/locations
Content-Type: application/json

Creates a screening-ready job for one of a registry's locations. Call it
when a location is added on your side.

**Send a real street address.** CONFIRM's distance screening measures a
candidate's commute against it, so a location without one is created
successfully but screens nobody on distance — the response says so in
`warnings`.

**You do not have to supply the job.** Omit `title` and `description`
and CONFIRM scaffolds its standard caregiver role for you — title,
responsibilities, requirements and benefits — so your location-created
job can post the address and nothing else. Supply them only when the
location hires for something other than the default role.

**Titles.** Without a `title`, the job is titled "Caregiver — " followed
by the location's `name` — or, when there is no `name`, its city, then
the registry's name. A `title` you send is stored exactly as you send
it, here or on `PATCH /locations/{ref}`; nothing is added to it. So you
never need to send the "Caregiver — " prefix yourself. If you rename a
location with `PATCH` and want to keep that style, send the whole title
you want, e.g. `"Caregiver — Denver North"`.

**Send the pay rate.** The screening call tells applicants what the
location pays. A location without `pay` is created, but the response
carries the warning "No pay rate set — the pay question will be skipped
on screening calls for this location." See `pay` below for the rules.

**Idempotent on `external_ref`** within the registry. Posting a ref that
already exists returns `200` with the existing location and
`created: false`, and changes nothing: a new `name`, `title`, address or
`pay` in the body is ignored, and the response reports the pay the
location already has. Use `PATCH /locations/{ref}` to change a
location.

Reference: https://docs.confirm.global/partner-api/locations/create-location

## Authentication

- `Authorization` header (bearer token, required) — Partner API key sent as `Authorization: Bearer cfk_...`. Keys are partner-level — one key reaches every registry linked to your partner account and nothing else. CONFIRM issues and revokes them; a key is shown exactly once at creation because only its hash is stored, and revocation takes effect on the next request. Develop against the sandbox base URL with a sandbox key, where telephony is restricted to an allowlist you provide.

## Request

### Body (application/json)

This endpoint expects an object.

- `external_ref` (string, required) — Your location identifier. Referenced later as `location_ref` when ingesting applicants.
- `organization_ref` (string, required) — The registry this location belongs to (the `external_ref` you provisioned it with).
- `name` (string, optional) — The location's own name. Used to title the scaffolded job ("Caregiver — Clearwater") when you don't supply `title`. Without a `name`, the title uses the city, then the registry name.
- `title` (string, optional) — The job title for this location, stored exactly as you send it. Optional — omit it and the default caregiver role is used, titled "Caregiver — \{name}".
- `description` (string, optional) — Role description. Used in candidate-facing copy and screening context. Optional — omit it and the default caregiver description is used.
- `employment_type` (string, optional) — Defaults to `full-time` when omitted.
- `address` (StreetAddress, optional) — A real street address. Distance screening measures a candidate's commute against it, so the more complete it is, the better location fit works.
- `pay` (LocationPayInput, optional) — The location's pay rate, as you send it. Every key is optional, but: - include at least one of `min`, `max` or `text`; - `period` is required when `min` or `max` is given; - `min` may not be greater than `max`. Breaking a rule is a `400 invalid_request`. The screening call uses the pay rate to answer the pay question; a location without one skips it.

## Response

### 201

Location created, with its job scaffolded. Posting an `external_ref` that already exists returns **200** with the existing location and `created: false`.

- `location_id` (string, required) — CONFIRM's identifier for the location's job.
- `external_ref` (string, required) — Your location identifier, echoed back. Pass it as `location_ref` when ingesting applicants.
- `title` (string, required)
- `status` (enum, required)
  - Allowed values: `active`, `closed`
- `organization_ref` (string, optional) — The registry this location belongs to.
- `geocoded` (boolean, optional) — True when the location has coordinates. False means distance screening is inactive for this location — check `warnings`. An address without a street geocodes to the centre of the city or ZIP; `warnings` says so when that happens.
- `address` (string, optional, nullable) — The stored single-line address.
- `created` (boolean, optional) — False when the location already existed and this call was a no-op.
- `pay` (LocationPay, optional, nullable) — The location's pay rate, or `null` when it has none. With `null`, `warnings` includes "No pay rate set — the pay question will be skipped on screening calls for this location."
- `warnings` (list of string, optional)

## Errors

### 400 Bad Request Error

Invalid request (`error.type: invalid_request_error`, `code: invalid_request`) — missing or malformed fields. `details` lists each offending field.

- `error` (ErrorError, required)

### 401 Unauthorized Error

Missing, malformed, or revoked API key (`error.type: authentication_error`).

- `error` (ErrorError, required)

### 404 Not Found Error

No registry is registered with that `organization_ref` (`unknown_organization_ref`).

- `error` (ErrorError, required)

### 429 Too Many Requests Error

Rate limit exceeded (`error.type: rate_limit_error`). Design target: 600 requests/min per key, burst 100/10s. Honor the `Retry-After` header.

- `error` (ErrorError, required)

## Types

### StreetAddress

A real street address. Distance screening measures a candidate's commute against it, so the more complete it is, the better location fit works.

- `street` (string, optional)
- `city` (string, optional)
- `state` (string, optional) — State or region.
- `postal_code` (string, optional)
- `country` (string, optional)

### LocationPayInput

The location's pay rate, as you send it. Every key is optional, but: - include at least one of `min`, `max` or `text`; - `period` is required when `min` or `max` is given; - `min` may not be greater than `max`. Breaking a rule is a `400 invalid_request`. The screening call uses the pay rate to answer the pay question; a location without one skips it.

- `min` (double, optional) — Lowest pay, per `period`.
- `max` (double, optional) — Highest pay, per `period`.
- `period` (enum, optional) — What `min` and `max` are quoted per.
  - Allowed values: `hourly`, `yearly`
- `text` (string, optional) — Free-text pay description, for pay that isn't a simple range (for example "$18/hr + $2 weekend differential"). Trimmed; an empty string counts as not sent.

### LocationPay

A location's stored pay rate. Every key is present; values that weren't set are `null`. `period` is `null` unless `min` or `max` is set.

- `min` (double, optional, nullable)
- `max` (double, optional, nullable)
- `period` (enum, optional, nullable)
  - Allowed values: `hourly`, `yearly`
- `text` (string, optional, nullable)

### ErrorError

- `type` (enum, required) — Broad error category.
  - Allowed values: `authentication_error`, `invalid_request_error`, `not_found_error`, `conflict_error`, `rate_limit_error`, `api_error`
- `code` (string, required) — Machine-readable error code, e.g. `invalid_request`, `unknown_location_ref` or `wrong_environment`. Branch on this; the strings are contract.
- `message` (string, required) — Human-readable explanation.
- `request_id` (string, required) — Identifier for this request — the same value as the response's `X-Request-Id` header. Include it when contacting CONFIRM support.
- `details` (list of ErrorErrorDetailsItems, optional) — Present on `invalid_request` (400): one entry per field that failed validation.
- `location_ref` (string, optional) — Present on `unknown_location_ref` (404) — the reference that wasn't found.
- `organization_ref` (string, optional) — Present on `unknown_organization_ref` (404) — the reference that wasn't found — and on `email_has_account` (409) — the registry the invitation was for.
- `external_ref` (string, optional) — Present on workspace-teardown refusals (403) — the workspace you asked to delete — and on applicant errors (`unknown_candidate_ref`, `no_application_at_location`, `outcome_conflict`) — the applicant ref.
- `organization_refs` (list of string, optional) — Present on `ambiguous_location_ref` (409) — the registries the ref exists in.
- `locations` (list of ErrorErrorLocationsItems, optional) — Present on `location_refs_span_organizations` (400) — each ref you sent with the registry it belongs to.

### ErrorErrorDetailsItems

- `field` (string, required) — Dotted path to the offending field, e.g. `address.postal_code`.
- `message` (string, required) — Why that field was rejected.

### ErrorErrorLocationsItems

- `location_ref` (string, optional)
- `organization_ref` (string, optional, nullable)

## Examples

### scaffolded

**Response**

```json
{
  "location_id": "2b7f91a4-33cd-4a02-9e61-70c8d4e1a55f",
  "external_ref": "cl_loc_88213",
  "title": "Caregiver — Clearwater",
  "status": "active",
  "organization_ref": "cl_biz_4471",
  "geocoded": true,
  "created": true,
  "pay": {
    "min": 17,
    "max": 21,
    "period": "hourly",
    "text": null
  }
}
```

**SDK Code**

```python scaffolded
import requests

url = "https://api.confirm.global/partner/v1/locations"

headers = {"Authorization": "Bearer <token>"}

response = requests.post(url, headers=headers)

print(response.json())
```

```javascript scaffolded
const url = 'https://api.confirm.global/partner/v1/locations';
const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go scaffolded
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.confirm.global/partner/v1/locations"

	req, _ := http.NewRequest("POST", url, nil)

	req.Header.Add("Authorization", "Bearer <token>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby scaffolded
require 'uri'
require 'net/http'

url = URI("https://api.confirm.global/partner/v1/locations")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
```

```java scaffolded
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://api.confirm.global/partner/v1/locations")
  .header("Authorization", "Bearer <token>")
  .asString();
```

```php scaffolded
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://api.confirm.global/partner/v1/locations', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
  ],
]);

echo $response->getBody();
```

```csharp scaffolded
using RestSharp;

var client = new RestClient("https://api.confirm.global/partner/v1/locations");
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift scaffolded
import Foundation

let headers = ["Authorization": "Bearer <token>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.confirm.global/partner/v1/locations")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### explicit

**Response**

```json
{
  "location_id": "2b7f91a4-33cd-4a02-9e61-70c8d4e1a55f",
  "external_ref": "cl_loc_88213",
  "title": "Certified Nursing Assistant — Clearwater",
  "status": "active",
  "organization_ref": "cl_biz_4471",
  "geocoded": true,
  "created": true,
  "pay": null,
  "warnings": [
    "No pay rate set — the pay question will be skipped on screening calls for this location."
  ]
}
```

**SDK Code**

```python explicit
import requests

url = "https://api.confirm.global/partner/v1/locations"

headers = {"Authorization": "Bearer <token>"}

response = requests.post(url, headers=headers)

print(response.json())
```

```javascript explicit
const url = 'https://api.confirm.global/partner/v1/locations';
const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go explicit
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.confirm.global/partner/v1/locations"

	req, _ := http.NewRequest("POST", url, nil)

	req.Header.Add("Authorization", "Bearer <token>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby explicit
require 'uri'
require 'net/http'

url = URI("https://api.confirm.global/partner/v1/locations")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
```

```java explicit
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://api.confirm.global/partner/v1/locations")
  .header("Authorization", "Bearer <token>")
  .asString();
```

```php explicit
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://api.confirm.global/partner/v1/locations', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
  ],
]);

echo $response->getBody();
```

```csharp explicit
using RestSharp;

var client = new RestClient("https://api.confirm.global/partner/v1/locations");
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift explicit
import Foundation

let headers = ["Authorization": "Bearer <token>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.confirm.global/partner/v1/locations")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### Add a location, let CONFIRM write the job

**Request**

```json
{
  "external_ref": "cl_loc_88213",
  "organization_ref": "cl_biz_4471",
  "name": "Clearwater",
  "address": {
    "street": "1100 Cleveland St",
    "city": "Clearwater",
    "state": "FL",
    "postal_code": "33755",
    "country": "US"
  },
  "pay": {
    "min": 17,
    "max": 21,
    "period": "hourly"
  }
}
```

**Response**

```json
{
  "location_id": "2b7f91a4-33cd-4a02-9e61-70c8d4e1a55f",
  "external_ref": "cl_loc_88213",
  "title": "Caregiver — Clearwater",
  "status": "active",
  "organization_ref": "cl_biz_4471",
  "geocoded": true,
  "created": true,
  "pay": {
    "min": 17,
    "max": 21,
    "period": "hourly",
    "text": null
  }
}
```

**SDK Code**

```python Add a location, let CONFIRM write the job
import requests

url = "https://api.confirm.global/partner/v1/locations"

payload = {
    "external_ref": "cl_loc_88213",
    "organization_ref": "cl_biz_4471",
    "name": "Clearwater",
    "address": {
        "street": "1100 Cleveland St",
        "city": "Clearwater",
        "state": "FL",
        "postal_code": "33755",
        "country": "US"
    },
    "pay": {
        "min": 17,
        "max": 21,
        "period": "hourly"
    }
}
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```javascript Add a location, let CONFIRM write the job
const url = 'https://api.confirm.global/partner/v1/locations';
const options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{"external_ref":"cl_loc_88213","organization_ref":"cl_biz_4471","name":"Clearwater","address":{"street":"1100 Cleveland St","city":"Clearwater","state":"FL","postal_code":"33755","country":"US"},"pay":{"min":17,"max":21,"period":"hourly"}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Add a location, let CONFIRM write the job
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://api.confirm.global/partner/v1/locations"

	payload := strings.NewReader("{\n  \"external_ref\": \"cl_loc_88213\",\n  \"organization_ref\": \"cl_biz_4471\",\n  \"name\": \"Clearwater\",\n  \"address\": {\n    \"street\": \"1100 Cleveland St\",\n    \"city\": \"Clearwater\",\n    \"state\": \"FL\",\n    \"postal_code\": \"33755\",\n    \"country\": \"US\"\n  },\n  \"pay\": {\n    \"min\": 17,\n    \"max\": 21,\n    \"period\": \"hourly\"\n  }\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("Authorization", "Bearer <token>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Add a location, let CONFIRM write the job
require 'uri'
require 'net/http'

url = URI("https://api.confirm.global/partner/v1/locations")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"external_ref\": \"cl_loc_88213\",\n  \"organization_ref\": \"cl_biz_4471\",\n  \"name\": \"Clearwater\",\n  \"address\": {\n    \"street\": \"1100 Cleveland St\",\n    \"city\": \"Clearwater\",\n    \"state\": \"FL\",\n    \"postal_code\": \"33755\",\n    \"country\": \"US\"\n  },\n  \"pay\": {\n    \"min\": 17,\n    \"max\": 21,\n    \"period\": \"hourly\"\n  }\n}"

response = http.request(request)
puts response.read_body
```

```java Add a location, let CONFIRM write the job
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://api.confirm.global/partner/v1/locations")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{\n  \"external_ref\": \"cl_loc_88213\",\n  \"organization_ref\": \"cl_biz_4471\",\n  \"name\": \"Clearwater\",\n  \"address\": {\n    \"street\": \"1100 Cleveland St\",\n    \"city\": \"Clearwater\",\n    \"state\": \"FL\",\n    \"postal_code\": \"33755\",\n    \"country\": \"US\"\n  },\n  \"pay\": {\n    \"min\": 17,\n    \"max\": 21,\n    \"period\": \"hourly\"\n  }\n}")
  .asString();
```

```php Add a location, let CONFIRM write the job
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://api.confirm.global/partner/v1/locations', [
  'body' => '{
  "external_ref": "cl_loc_88213",
  "organization_ref": "cl_biz_4471",
  "name": "Clearwater",
  "address": {
    "street": "1100 Cleveland St",
    "city": "Clearwater",
    "state": "FL",
    "postal_code": "33755",
    "country": "US"
  },
  "pay": {
    "min": 17,
    "max": 21,
    "period": "hourly"
  }
}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
  ],
]);

echo $response->getBody();
```

```csharp Add a location, let CONFIRM write the job
using RestSharp;

var client = new RestClient("https://api.confirm.global/partner/v1/locations");
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"external_ref\": \"cl_loc_88213\",\n  \"organization_ref\": \"cl_biz_4471\",\n  \"name\": \"Clearwater\",\n  \"address\": {\n    \"street\": \"1100 Cleveland St\",\n    \"city\": \"Clearwater\",\n    \"state\": \"FL\",\n    \"postal_code\": \"33755\",\n    \"country\": \"US\"\n  },\n  \"pay\": {\n    \"min\": 17,\n    \"max\": 21,\n    \"period\": \"hourly\"\n  }\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift Add a location, let CONFIRM write the job
import Foundation

let headers = [
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = [
  "external_ref": "cl_loc_88213",
  "organization_ref": "cl_biz_4471",
  "name": "Clearwater",
  "address": [
    "street": "1100 Cleveland St",
    "city": "Clearwater",
    "state": "FL",
    "postal_code": "33755",
    "country": "US"
  ],
  "pay": [
    "min": 17,
    "max": 21,
    "period": "hourly"
  ]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://api.confirm.global/partner/v1/locations")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### Add a location with your own job copy

**Request**

```json
{
  "external_ref": "cl_loc_88213",
  "organization_ref": "cl_biz_4471",
  "title": "Certified Nursing Assistant — Clearwater",
  "description": "Provide direct resident care under an RN's supervision…",
  "employment_type": "part-time",
  "address": {
    "street": "1100 Cleveland St",
    "city": "Clearwater",
    "state": "FL",
    "postal_code": "33755",
    "country": "US"
  }
}
```

**Response**

```json
{
  "location_id": "2b7f91a4-33cd-4a02-9e61-70c8d4e1a55f",
  "external_ref": "cl_loc_88213",
  "title": "Caregiver — Clearwater",
  "status": "active",
  "organization_ref": "cl_biz_4471",
  "geocoded": true,
  "created": true,
  "pay": {
    "min": 17,
    "max": 21,
    "period": "hourly",
    "text": null
  }
}
```

**SDK Code**

```python Add a location with your own job copy
import requests

url = "https://api.confirm.global/partner/v1/locations"

payload = {
    "external_ref": "cl_loc_88213",
    "organization_ref": "cl_biz_4471",
    "title": "Certified Nursing Assistant — Clearwater",
    "description": "Provide direct resident care under an RN's supervision…",
    "employment_type": "part-time",
    "address": {
        "street": "1100 Cleveland St",
        "city": "Clearwater",
        "state": "FL",
        "postal_code": "33755",
        "country": "US"
    }
}
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```javascript Add a location with your own job copy
const url = 'https://api.confirm.global/partner/v1/locations';
const options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: '{"external_ref":"cl_loc_88213","organization_ref":"cl_biz_4471","title":"Certified Nursing Assistant — Clearwater","description":"Provide direct resident care under an RN\'s supervision…","employment_type":"part-time","address":{"street":"1100 Cleveland St","city":"Clearwater","state":"FL","postal_code":"33755","country":"US"}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Add a location with your own job copy
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://api.confirm.global/partner/v1/locations"

	payload := strings.NewReader("{\n  \"external_ref\": \"cl_loc_88213\",\n  \"organization_ref\": \"cl_biz_4471\",\n  \"title\": \"Certified Nursing Assistant — Clearwater\",\n  \"description\": \"Provide direct resident care under an RN's supervision…\",\n  \"employment_type\": \"part-time\",\n  \"address\": {\n    \"street\": \"1100 Cleveland St\",\n    \"city\": \"Clearwater\",\n    \"state\": \"FL\",\n    \"postal_code\": \"33755\",\n    \"country\": \"US\"\n  }\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("Authorization", "Bearer <token>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Add a location with your own job copy
require 'uri'
require 'net/http'

url = URI("https://api.confirm.global/partner/v1/locations")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"external_ref\": \"cl_loc_88213\",\n  \"organization_ref\": \"cl_biz_4471\",\n  \"title\": \"Certified Nursing Assistant — Clearwater\",\n  \"description\": \"Provide direct resident care under an RN's supervision…\",\n  \"employment_type\": \"part-time\",\n  \"address\": {\n    \"street\": \"1100 Cleveland St\",\n    \"city\": \"Clearwater\",\n    \"state\": \"FL\",\n    \"postal_code\": \"33755\",\n    \"country\": \"US\"\n  }\n}"

response = http.request(request)
puts response.read_body
```

```java Add a location with your own job copy
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://api.confirm.global/partner/v1/locations")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{\n  \"external_ref\": \"cl_loc_88213\",\n  \"organization_ref\": \"cl_biz_4471\",\n  \"title\": \"Certified Nursing Assistant — Clearwater\",\n  \"description\": \"Provide direct resident care under an RN's supervision…\",\n  \"employment_type\": \"part-time\",\n  \"address\": {\n    \"street\": \"1100 Cleveland St\",\n    \"city\": \"Clearwater\",\n    \"state\": \"FL\",\n    \"postal_code\": \"33755\",\n    \"country\": \"US\"\n  }\n}")
  .asString();
```

```php Add a location with your own job copy
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://api.confirm.global/partner/v1/locations', [
  'body' => '{
  "external_ref": "cl_loc_88213",
  "organization_ref": "cl_biz_4471",
  "title": "Certified Nursing Assistant — Clearwater",
  "description": "Provide direct resident care under an RN\'s supervision…",
  "employment_type": "part-time",
  "address": {
    "street": "1100 Cleveland St",
    "city": "Clearwater",
    "state": "FL",
    "postal_code": "33755",
    "country": "US"
  }
}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
  ],
]);

echo $response->getBody();
```

```csharp Add a location with your own job copy
using RestSharp;

var client = new RestClient("https://api.confirm.global/partner/v1/locations");
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"external_ref\": \"cl_loc_88213\",\n  \"organization_ref\": \"cl_biz_4471\",\n  \"title\": \"Certified Nursing Assistant — Clearwater\",\n  \"description\": \"Provide direct resident care under an RN's supervision…\",\n  \"employment_type\": \"part-time\",\n  \"address\": {\n    \"street\": \"1100 Cleveland St\",\n    \"city\": \"Clearwater\",\n    \"state\": \"FL\",\n    \"postal_code\": \"33755\",\n    \"country\": \"US\"\n  }\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift Add a location with your own job copy
import Foundation

let headers = [
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = [
  "external_ref": "cl_loc_88213",
  "organization_ref": "cl_biz_4471",
  "title": "Certified Nursing Assistant — Clearwater",
  "description": "Provide direct resident care under an RN's supervision…",
  "employment_type": "part-time",
  "address": [
    "street": "1100 Cleveland St",
    "city": "Clearwater",
    "state": "FL",
    "postal_code": "33755",
    "country": "US"
  ]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://api.confirm.global/partner/v1/locations")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```