View as Markdown

Confirm a (userId, fingerprint) pair as a legitimate device

POST /v1/users/{userId}/devices/{fingerprint}/confirm
Base URL
https://api.isnotai.com
Available Regions 2 regions

Path Parameters

userId
string Required

User id.

fingerprint
string Required

Device fingerprint.

application/json

Body

notes
string

Responses

200 application/json

Payload of DeviceConfirmResponse

Show 1 response attribute Hide response attributes
data
object
Show 4 data attributes Hide data attributes
userId
string
deviceFingerprint
string
confirmedAt
string(date-time)
notes
string
400 application/json

Payload of ErrorEnvelope

Show 1 response attribute Hide response attributes
error
object
Show 3 error attributes Hide error attributes
code
string
message
string
details
object
401 application/json

Payload of ErrorEnvelope

Show 1 response attribute Hide response attributes
error
object
Show 3 error attributes Hide error attributes
code
string
message
string
details
object
POST /v1/users/{userId}/devices/{fingerprint}/confirm
curl --request POST \
  --url https://api.isnotai.com/v1/users/your-userId/devices/your-fingerprint/confirm \
  --header 'Authorization: Bearer aik_v1_YOUR_API_KEY' \
  --header 'Content-Type: application/json' \
  --data '{}'
import requests

url = "https://api.isnotai.com/v1/users/your-userId/devices/your-fingerprint/confirm"

payload = {}
headers = {
    "Authorization": "Bearer aik_v1_YOUR_API_KEY",
    "Content-Type": "application/json"
}

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

print(response.json())
const fetch = require('node-fetch');

const url = 'https://api.isnotai.com/v1/users/your-userId/devices/your-fingerprint/confirm';
const options = {
  method: 'POST',
  headers: {
    Authorization: 'Bearer aik_v1_YOUR_API_KEY',
    'Content-Type': 'application/json'
  },
  body: '{}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
    Method = HttpMethod.Post,
    RequestUri = new Uri("https://api.isnotai.com/v1/users/your-userId/devices/your-fingerprint/confirm"),
    Headers =
    {
        { "Authorization", "Bearer aik_v1_YOUR_API_KEY" },
    },
    Content = new StringContent("{}")
    {
        Headers =
        {
            ContentType = new MediaTypeHeaderValue("application/json")
        }
    }
};
using (var response = await client.SendAsync(request))
{
    response.EnsureSuccessStatusCode();
    var body = await response.Content.ReadAsStringAsync();
    Console.WriteLine(body);
}

Try it

Collapse

Sent to the API as Authorization: Bearer aik_v1_.... Held only in this tab's input element; re-enter on each browser tab. The docs site never receives or stores it.

Path parameters

User id.

Device fingerprint.

Request examples
{}
200 Response examples
{
  "data": {
    "userId": "string",
    "deviceFingerprint": "string",
    "confirmedAt": "2024-01-01T00:00:00Z",
    "notes": "string"
  }
}
400 Response examples
{
  "error": {
    "code": "string",
    "message": "string",
    "details": {}
  }
}
401 Response examples
{
  "error": {
    "code": "string",
    "message": "string",
    "details": {}
  }
}