Authentication

This API is used to authenticate a user who wants to access this organization's data

After successful authentication, you can:

  • Get your organization’s data from PangoCDP

  • Ingestion your data to PangoCDP

Method

POST

Path Variable

payload

{
   "username": "[email protected]",
   "apiKey": "",
   "cdpGKey": "e7402a2f14XXXXX27488373a60355e0c"
}

Headers

Content-type: application/json

Payload Parameters

Name
Type
Required
Valid Value / Description
Example

username

String

Yes

Username in PangoCDP

user@your-email

apiKey

String

Yes

Api Key belongs to username

The string looks like:

46a5207f18xxxxx1ec6fb99bf

cdpGKey

String

Yes

PangoCDP Group key - This is your organization key

The string looks like:

e7402a2f14xxxxx27488373a60355e0c

Example

Response

{
    "expiredAt":1584416719000,
    "success":true,
    "expiredAfter":1800,
    "issuedAt":1584414919000,
    "token":"6liOixxax4iG2ziyk1k134p...",
    "status":"authenticated"
}

Response

Status
HTTP Code

Failed

400

{ 
    "success":false,
    "errorCode":"MISSING_INFO",
    "message":"Username and ApiKey are required"
} 
{ 
    "success":false,
    "errorCode":"MISSING_INFO",
    "message":"Organization Context is not set"
}

Success

200

{
    "expiredAt":1584416719000,
    "success":true,
    "expiredAfter":1800,
    "issuedAt":1584414919000,
    "token":"6liOixxax4iG2ziyk1k134p...",
    "status":"authenticated"
}

Last updated

Was this helpful?