On this page
What this endpoint does

This is the handshake that turns a successful browser login into a token your program can use. It is the only call that does not need a token already, because it is the call that gives you one.

POSThttps://api.infinn.in/NorenWClientAPI/GenAcsTok
Method
POST
Authentication
No token needed
Content-Type
text/plain
Body
jData=<json>
Returns
JSON object
Rate limit
20 orders/sec, 200/min (account-wide)

What it does

This is the handshake that turns a successful browser login into a token your program can use. It is the only call that does not need a token already, because it is the call that gives you one.

Exchanges the one-time login code for an access token.

The code is single use

Each login code works exactly once. If the call fails for any reason -- including a mistyped checksum -- you must log in again to get a fresh code. Reusing a spent code returns INVALID_VERIFIER.

Never ship your secret key

The checksum exists so that your secret key never travels. Compute it on a server or in a local script. A secret key embedded in a mobile app or a web page can be extracted by anyone who downloads it.

OAuth only

This is the only way to log in to the INFINN API. If the response contains susertoken, ignore it: it is not used for login or for authorising requests. Use access_token as Authorization: Bearer <token>.

Token lifetime

An access token stays valid until the daily server restart (start of day) at about 4:00 AM IST. Logging in again issues a new token and the old one stops working. To renew, run the OAuth login again.

Request

Send a POST with the header Content-Type: text/plain. The body is a single form field, jData, whose value is a JSON string. No Authorization header is needed for this endpoint. See how requests are shaped if that sounds unfamiliar.

Headers

Request headers
HeaderTypeDescription
Content-Type
required
string

text/plain (used in these docs) or application/json. Both work. The body is always jData=<JSON>.

jData fields

Request parameters
FieldTypeDescription
code
required
string

The one-time code returned on the login redirect URL.

A single-use code the login page hands back to you.

Example7a1c0e52-90b4-4f3d-a6e8-5d2c4b1f0a93
Where to get itThe ?code= query parameter on the URL you land on after signing in at api.infinn.in/OAuthlogin/investor-entry-level/login. 36 characters with dashes. Works once.
checksum
required
string

SHA-256 hash of app_key + secret_key + code, concatenated with no separators and no spaces.

A fingerprint that proves you know your secret key without sending it.

Examplea6cc7cae4ee02398ece3598cb850a4a22599feba08a663995ed58d1341330848
Where to get itThe calculator further down this page computes it in your browser, or compute it yourself: if app key is IN001_U, secret key is demo-secret-0000 and code is 7a1c0e52-90b4-4f3d-a6e8-5d2c4b1f0a93, hash the string IN001_Udemo-secret-00007a1c0e52-90b4-4f3d-a6e8-5d2c4b1f0a93.

Request and response together

The same call, shown as raw HTTP on the left and the documented response on the right.

Request
HTTP request
POST /NorenWClientAPI/GenAcsTok HTTP/1.1
Host: api.infinn.in
Content-Type: text/plain

jData={"code":"7a1c0e52-90b4-4f3d-a6e8-5d2c4b1f0a93","checksum":"a6cc7cae4ee02398ece3598cb850a4a22599feba08a663995ed58d1341330848"}
Response
200 OK
{
"stat": "Ok",
"uid": "IN001",
"USERID": "IN001",
"actid": "IN001",
"uname": "DEMO USER",
"brkname": "INFINN",
"brnchid": "HO",
"access_token": "a1b2c3d4e5f60718293a4b5c6d7e8f90a1b2c3d4e5f60718293a4b5c6d7e8f90",
"susertoken": "a1b2c3d4e5f60718293a4b5c6d7e8f90a1b2c3d4e5f60718293a4b5c6d7e8f90",
"refresh_token": "0f1e2d3c4b5a69788796a5b4c3d2e1f00f1e2d3c4b5a69788796a5b4c3d2e1f0",
"expires_in": "1792022400",
"scope": "...",
"totp_set": "...",
"lastaccesstime": "1792000000",
"lastpwdtime": "...",
"exarr": [
  "NSE",
  "BSE",
  "NFO"
],
"exch_prd": [
  "..."
],
"orarr": [
  "LMT",
  "MKT",
  "SL-LMT",
  "SL-MKT"
],
"prarr": [
  "..."
],
"mws": {},
"values": []
}

A failure, for comparison

Note the HTTP status: it is still 200. The failure is reported inside the body. See the two error layers.

Request
HTTP request
POST /NorenWClientAPI/GenAcsTok HTTP/1.1
Host: api.infinn.in
Content-Type: text/plain

jData={"code":"7a1c0e52-90b4-4f3d-a6e8-5d2c4b1f0a93","checksum":"a6cc7cae4ee02398ece3598cb850a4a22599feba08a663995ed58d1341330848"}
Error
200 OK — but stat is Not_Ok
{
"stat": "Not_Ok",
"emsg": "Invalid Input : INVALID_VERIFIER",
"uid": "TEST"
}

Code examples

Each sample is a complete, runnable program. Replace YOUR_ACCESS_TOKEN and the placeholder field values, and it will run as-is. Every one checks both error layers.

cURL
curl --request POST \
--url 'https://api.infinn.in/NorenWClientAPI/GenAcsTok' \
--header 'Content-Type: text/plain' \
--data 'jData={"code":"7a1c0e52-90b4-4f3d-a6e8-5d2c4b1f0a93","checksum":"a6cc7cae4ee02398ece3598cb850a4a22599feba08a663995ed58d1341330848"}'

Checksum calculator

The checksum field is a SHA-256 hash, so it cannot be typed. Compute it here and copy it into your own request - the three values never leave this page.

Checksum calculatorruns in your browser
Only paste a secret key into a page you trust

This calculator is plain JavaScript running in your own tab. It makes no network request of any kind, and the values are not saved. You can confirm that: open devtools, Network tab, and watch nothing happen.

The same is not true of the online SHA-256 tools a search will offer you. A secret key pasted into one of those is a secret key you no longer control. If you would rather not type it here either, the command-line versions do the same arithmetic locally.

Not your user ID.

Never sent, never stored.

36 characters with dashes. Single use.

SHA-256
Fill in all three fields above

Response

On success the body is a JSON object. Infinn omits fields rather than returning null, so check that a field is present before reading it. The field list below matches a live success response (16 Oct 2026).

Response fields
FieldTypeDescription
statstring

Ok on success, Not_Ok on failure. Always check this before reading anything else.

Did it work? Ok means yes, Not_Ok means no.

access_tokenstring

The token to send as a Bearer credential on every other call. 64 hexadecimal characters, no dashes.

Your temporary password for the API.

refresh_tokenstring

Refresh token. Present in the live response. No refresh endpoint is documented yet; log in again after expiry.

expires_instring

When the access token expires, as a Unix timestamp in seconds.

unamestring

User name.

actidstring

Account ID. For an individual account it equals uid (confirmed live).

uidstring

User ID, in capitals. Both uid and USERID are returned.

USERIDstring

User ID (same value as uid).

susertokenstring

Session token. Currently the same value as access_token. Not used for login; use access_token as the Bearer token.

brnchidstring

Branch ID.

exarrstring

Exchanges enabled for the account (list).

exch_prdstring

Products enabled per exchange (list).

orarrstring

Order types enabled (list).

prarrstring

Products enabled (list).

mwsstring

Market watch scripts.

valuesstring

Market watch names (list).

lastpwdtimestring

Last password change time.

scopestring

Token scope.

totp_setstring

Whether TOTP is set up for the user.

brknamestring

Broker ID.

lastaccesstimestring

Previous access time, as a Unix timestamp.

emsgstring

Human-readable reason for the failure.

If something went wrong, this says what.

PresencePresent only when stat is Not_Ok.

Errors

This endpoint can fail at either layer. A transport failure returns a 4xx or 5xx with an empty body; an application failure returns 200 with stat: "Not_Ok" and an emsg.

Esc
↑↓ navigate↵ openEsc close/ to search