Skip to content
1Kosmos logo

Connectors / IT · HTTP Connector

1Kosmos integration and API

Generate a one-time passcode, create a verification session and create a verifiable credential in 1Kosmos.

What can you do with 1Kosmos on Tray.ai?

1Kosmos is an identity platform for passwordless sign-in and identity verification, checking government IDs and selfies before granting access to workforce or customer accounts. Tray.ai connects to 1Kosmos through the HTTP Connector, so your workflows can call the 1Kosmos API alongside the rest of your stack. API access comes through 1Kosmos's partner program or API plan, so you need approved credentials first.

  • Create a user when a new hire is added to your HR system so they can sign in without a password on day one.
  • Create a verification session when a high-risk access request lands in your help desk.
  • Each week, get login activity report data and load it into your security team's data warehouse.
  • Each day, get audit log report entries and send them to your SIEM for review.
Connects through
HTTP Connector
Authentication
An API key in a request header

Set it up

Connect 1Kosmos to Tray.ai

Each step uses 1Kosmos's own API details, from its documentation.

Save 1Kosmos's API key

Ask 1Kosmos for API access. Once it's approved, save the key as a Tray.ai authentication. The HTTP Client puts it in the request header, read from $.auth. The key stays out of the workflow and out of the logs.

Import a request from 1Kosmos's docs

Add an HTTP Client step and paste a cURL example from 1Kosmos's API docs. Tray.ai fills in the method, URL, headers, and query.

Start with “Get user details”

It's one of 17 documented actions, under Users. The response comes back as data the next step can map into your other apps.

Hand it to an AI agent

Wrap “Create a user” and “Update a username alias” in workflows, and Tray.ai's Agent Gateway for MCP publishes them as governed tools Claude and other AI agents can call.

Workflows to build with 1Kosmos

Connect 1Kosmos with Workday REST, Okta, Snowflake and Google BigQuery

Each one uses actions and events from 1Kosmos's own API documentation.

Verify new hires' IDs before Okta access goes live

When

A new hire is added in Workday REST

Then

  1. Create a user for the new hire
  2. Create a verification session and send the link
  3. Poll a verification session, then activate the account in Okta

With Workday REST and Okta

Send the daily login activity report to Snowflake

When

On a schedule

Then

  1. Get login activity report for the past day
  2. Load the records into the security tables in Snowflake

With Snowflake

Archive identity audit logs in Google BigQuery

When

On a schedule

Then

  1. Get audit log report since the last run
  2. Load the events into Google BigQuery for review

With Google BigQuery

Apps you can build on 1Kosmos data

Internal tools your team can build with an AI assistant, each one using 1Kosmos calls from its API documentation.

Sign-in activity dashboard

Shows login activity and last-seen dates by user so security can spot dormant or unusual accounts.

Identity verification desk

Lets support staff start an ID verification session for a user and see the result before a reset.

Audit log review

Lists audit log and event reports so compliance can review identity changes for a period.

1Kosmos MCP server for AI agents

Build an MCP server on 1Kosmos in Agent Gateway and choose which actions your agents can call. Every call runs with access control and an audit trail. How Agent Gateway works

  • Create a user
  • Generate a one-time passcode
  • Create a verification session
  • Get event reports
  • Create a verifiable credential
  • Create a workflow instance
  • Get user details
  • Update a username alias

What the 1Kosmos API covers

6 resources and 17 documented actions, each one a call the HTTP Connector can make from a Tray.ai workflow. 1Kosmos gives API access on request, so approved credentials come first. Connecting it takes a few clicks: here's how.

Users

  • Create a user
  • Get user details
  • Update a username alias

One-time passcodes

  • Generate a one-time passcode
  • Verify a one-time passcode

ID verification sessions

  • Create a verification session
  • Poll a verification session

Reports

  • Get event reports
  • Get audit log report
  • Get login activity report
  • Get last seen report

Verifiable credentials

  • Create a verifiable credential
  • Get credential status
  • Verify a verifiable credential
  • Issue a verifiable presentation

Workflows

  • Create a workflow instance
  • Get a workflow node result

Checked against 1Kosmos's own documentation on 2026-11-03

documenter.getpostman.com/view/50203634/2sB3dHWZ1n

Frequently asked questions

What can a Tray.ai workflow do in 1Kosmos?

The 1Kosmos API documents 17 actions across 6 resources (Users, One-time passcodes, ID verification sessions, Reports, Verifiable credentials, Workflows). For example: Create a user; Generate a one-time passcode; Create a verification session. A workflow can make any documented call through the HTTP Connector.

How does Tray.ai authenticate with 1Kosmos?

The 1Kosmos API uses an API key in a request header. You save it once as a Tray.ai authentication, and the HTTP Connector adds it to every request.

Do I need special access to the 1Kosmos API?

Yes. 1Kosmos gives API access on request, so you need approved credentials before a Tray.ai workflow can call it.

See 1Kosmos working against your stack.

We'll walk through a tailored demo with your systems plugged in.

Great, a couple more details

This helps us connect you with the right person. Optional, and you can skip it.