POST
/
api
/
v1
/
authenticate
curl --request POST \
  --url https://integration-api.getfront.com/api/v1/authenticate \
  --header 'Content-Type: application/json' \
  --header 'X-Client-Id: <api-key>' \
  --header 'X-Client-Secret: <api-key>' \
  --data '{
  "username": "username",
  "password": "password",
  "mfaCode": "000000",
  "mfaType": "phone",
  "type": "robinhood"
}'
{
  "content": {
    "status": "succeeded",
    "expiresInSeconds": 7200,
    "accountTokens": [
      {
        "account": {
          "meshAccountId": "00000000-0000-0000-0000-000000000000",
          "frontAccountId": "00000000-0000-0000-0000-000000000000",
          "accountId": "Id of the account",
          "accountName": "Name of the account"
        },
        "accessToken": "Access token, allowing access to the integration",
        "refreshToken": "Optional refresh token, allowing to refresh the access token"
      }
    ]
  },
  "status": "ok",
  "message": "",
  "errorType": ""
}

Authorizations

X-Client-Secret
string
header
required

Contact Front to get client Secret

X-Client-Id
string
header
required

Contact Front to get client Id

Query Parameters

userId
string
required

Id of the end-user

Body

application/json
Authentication request.
type
enum<string>
required
Available options:
robinhood,
eTrade,
alpaca,
tdAmeritrade,
weBull,
stash,
interactiveBrokers,
public,
coinbase,
kraken,
coinbasePro,
cryptoCom,
openSea,
binanceUs,
gemini,
cryptocurrencyAddress,
cryptocurrencyWallet,
okCoin,
bittrex,
kuCoin,
etoro,
cexIo,
binanceInternational,
bitstamp,
gateIo,
acorns,
okx,
bitFlyer,
coinlist,
huobi,
bitfinex,
deFiWallet,
krakenDirect,
vanguard,
binanceInternationalDirect,
bitfinexDirect,
bybit,
paxos,
coinbasePrime
phone
string | null
username
string | null
password
string | null
tradePin
string | null
countryInfo
object
challengeId
string | null
challengeCode
string | null
challengeAnswer
string | null

Used to provide answers to security questions

mfaCode
string | null
mfaType
enum<string>
Available options:
phone,
email,
totp,
phoneAndEmail,
requireNextSecurityQuestion,
readEmail,
face
deviceInfo
string | null
authFlowStep
enum<string>
Available options:
loginPassword,
mfaFlow,
faceVerification
key
string | null
authToken
string | null
confirmationEmail
string | null

Response

200
application/json
Success
status
enum<string>
Available options:
ok,
serverFailure,
permissionDenied,
badRequest,
notFound,
conflict,
tooManyRequest,
locked
message
string | null

A message generated by the API

displayMessage
string | null

User-friendly display message that can be presented to the end user

errorType
string | null

Strictly-typed error type that is explaining the reason of an unsuccessful status of the operation. All possible error types are available in the documentation.

content
object