Aiviue
QSR & HospitalityLogistics & DeliveryAutomotiveBFSIRetail
JobsJob SeekersInsightsAboutHire Now

Get started

  • Overview
  • Quickstart

Guides

  • Authentication
  • Tenants
  • Idempotency
  • Webhooks
  • Errors and rate limits
  • Sandbox
  • Versioning and changelog

Reference

  • API reference

Guide

Authentication

OAuth 2.0 client credentials, test and live secrets, and scopes.

View as markdown

The Partner API uses OAuth 2.0 client credentials. You exchange a client secret for a signed bearer token (RS256 JWT) and send that token on every request.

Test and live secrets

Client secrets carry their environment in the prefix:

PrefixEnvironmentUse
aiv_test_partner_testDevelopment and testing. Isolated test data.
aiv_live_productionReal jobs and candidates.

The prefix must match the environment of the client it belongs to, otherwise the token request is rejected. Clients issued before prefixes were introduced have unprefixed secrets; they keep working but must send client_id too.

Keep secrets on your server. Never ship them in a browser or mobile app.

Requesting a token

POST /v1/auth/token accepts any of these:

  • a JSON body: {"grant_type": "client_credentials", "client_secret": "...", "client_id": "..."}
  • a form body (application/x-www-form-urlencoded) with the same fields
  • HTTP Basic auth with client_id:client_secret

grant_type must be client_credentials. client_id is optional with a prefixed secret.

curl -X POST https://api.aiviue.com/v1/auth/token \
  -H "Content-Type: application/json" \
  -d '{"grant_type": "client_credentials", "client_secret": "aiv_test_..."}'

The response is plain JSON (not wrapped in the response envelope):

{ "access_token": "...", "token_type": "Bearer", "expires_in": 3600, "scope": "jobs:read jobs:write" }

Invalid credentials return 401.

Using the token

Authorization: Bearer <access_token>

Tokens expire after expires_in seconds (one hour). Reuse a token until it is close to expiry; don't request one per call.

Scopes

Your client is granted a fixed set of scopes when it is created. The token's scope field lists them. Calls outside your scopes return 403.

ScopeAllows
jobs:readRead jobs
jobs:writeCreate and update jobs
candidates:readRead candidates and scores
candidates:writeSubmit selection decisions
webhooks:readRead webhook subscriptions
webhooks:writeManage webhook subscriptions
webhooks:manageFull webhook access (includes webhooks:read and webhooks:write)
analytics:readRead partner analytics
analytics:writeWrite partner analytics events
partner_test:resetReset your own partner_test data (test environment only)

Verifying tokens yourself

Tokens are signed with RS256. The public keys are published at GET /v1/auth/.well-known/jwks.json; the issuer is https://api.aiviue.com.

Revoking credentials

POST /v1/auth/token/revoke with a JSON body {"client_id": "...", "client_secret": "..."} deactivates the client. Use it if a secret leaks, then ask us for a new one.

NextTenants →

Aiviue

AI hiring software for frontline teams in India

Company

  • About Us
  • Pricing
  • Insights
  • Job Seekers
  • Developers
  • Hire Now

Industries

  • QSR & Hospitality
  • Logistics & Delivery
  • Automotive
  • BFSI
  • Retail

© 2026 Aiviue. All rights reserved.

Privacy PolicyTerms of ServiceRefund PolicyCancellation Policy