curl --request POST \
  --url https://api.plasticity.ai/cortex/structured/ \
  --header 'authorization: Bearer <YOUR_API_KEY>' \
  --header 'content-type: application/json' \
  --data '{"entity": "Mark Zuckerberg", "property": "wife"}'
import requests

url = "https://api.plasticity.ai/cortex/structured/"

payload = "{\"entity\": \"Mark Zuckerberg\", \"property\": \"wife\"}"
headers = {
    'content-type': "application/json",
    'authorization': "Bearer <YOUR_API_KEY>"
    }

response = requests.request("POST", url, data=payload, headers=headers)

print(response.text)
HttpResponse<String> response = Unirest.post("https://api.plasticity.ai/cortex/structured/")
  .header("content-type", "application/json")
  .header("authorization", "Bearer <YOUR_API_KEY>")
  .body("{\"entity\": \"Mark Zuckerberg\", \"property\": \"wife\"}")
  .asString();
var settings = {
  "async": true,
  "crossDomain": true,
  "url": "https://api.plasticity.ai/cortex/structured/",
  "method": "POST",
  "headers": {
    "content-type": "application/json",
    "authorization": "Bearer <YOUR_API_KEY>"
  },
  "processData": false,
  "data": "{\"entity\": \"Mark Zuckerberg\", \"property\": \"wife\"}"
}

$.ajax(settings).done(function (response) {
  console.log(response);
});
var unirest = require("unirest");

var req = unirest("POST", "https://api.plasticity.ai/cortex/structured/");

req.headers({
  "content-type": "application/json",
  "authorization": "Bearer <YOUR_API_KEY>"
});

req.type("json");
req.send({
  "entity": "Mark Zuckerberg",
  "property": "wife"
});

req.end(function (res) {
  if (res.error) throw new Error(res.error);

  console.log(res.body);
});
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => "https://api.plasticity.ai/cortex/structured/",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => "{\"entity\": \"Mark Zuckerberg\", \"property\": \"wife\"}",
  CURLOPT_HTTPHEADER => array(
    "authorization: Bearer <YOUR_API_KEY>",
    "content-type: application/json"
  ),
));

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
require 'uri'
require 'net/http'
require 'openssl'

url = URI("https://api.plasticity.ai/cortex/structured/")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_NONE

request = Net::HTTP::Post.new(url)
request["content-type"] = 'application/json'
request["authorization"] = 'Bearer <YOUR_API_KEY>'
request.body = "{\"entity\": \"Mark Zuckerberg\", \"property\": \"wife\"}"

response = http.request(request)
puts response.read_body
CURL *hnd = curl_easy_init();

curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "https://api.plasticity.ai/cortex/structured/");

struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "content-type: application/json");
headers = curl_slist_append(headers, "authorization: Bearer <YOUR_API_KEY>");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);

curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\"entity\": \"Mark Zuckerberg\", \"property\": \"wife\"}");

CURLcode ret = curl_easy_perform(hnd);
var client = new RestClient("https://api.plasticity.ai/cortex/structured/");
var request = new RestRequest(Method.POST);
request.AddHeader("content-type", "application/json");
request.AddHeader("authorization", "Bearer <YOUR_API_KEY>");
request.AddParameter("application/json", "{\"entity\": \"Mark Zuckerberg\", \"property\": \"wife\"}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
#import <Foundation/Foundation.h>

NSDictionary *headers = @{ @"content-type": @"application/json",
                           @"authorization": @"Bearer <YOUR_API_KEY>" };
NSDictionary *parameters = @{ @"entity": @"Mark Zuckerberg",
                              @"property": @"wife" };

NSData *postData = [NSJSONSerialization dataWithJSONObject:parameters options:0 error:nil];

NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"https://api.plasticity.ai/cortex/structured/"]
                                                       cachePolicy:NSURLRequestUseProtocolCachePolicy
                                                   timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setAllHTTPHeaderFields:headers];
[request setHTTPBody:postData];

NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
                                            completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
                                                if (error) {
                                                    NSLog(@"%@", error);
                                                } else {
                                                    NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
                                                    NSLog(@"%@", httpResponse);
                                                }
                                            }];
[dataTask resume];
import Foundation

let headers = [
  "content-type": "application/json",
  "authorization": "Bearer <YOUR_API_KEY>"
]
let parameters = [
  "entity": "Mark Zuckerberg",
  "property": "wife"
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "https://api.plasticity.ai/cortex/structured/")! 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)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
package main

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

func main() {

	url := "https://api.plasticity.ai/cortex/structured/"

	payload := strings.NewReader("{\"entity\": \"Mark Zuckerberg\", \"property\": \"wife\"}")

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

	req.Header.Add("content-type", "application/json")
	req.Header.Add("authorization", "Bearer <YOUR_API_KEY>")

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

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

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

}