Auth

Users must authenticate successfully before any further API calls can be made. There are two methods for authenticating to api outlined in this section.

API Key

API Keys are provisioned by Support against your Console Connect User Account. Email Support to request a key.

Here is an example request using an API Key:

curl -X GET https://api.consoleconnect.com/api/company/exampleCo/ports \
-H "Authorization: Bearer [[api key]]"

portal-token (Deprecated)

The portal-token method of authentication will be removed soon. Please use API keys to authenticate. Contact Support if a portal-token is required in the meantime.

Get current user

Retrieve account details for the authenticated user.

Securityapi-key
Responses
200

OK

401

Unauthorized

get/api/auth/token
Response samples
application/json
{
  • "id": "669xxxxxxxxxxxxxxxxxxxxx",
  • "companies": [
    ],
  • "linkUserCompany": {
    },
  • "capabilities": {
    },
  • "system": {
    },
  • "cloudProviderDetails": {
    },
  • "settings": {
    },
  • "stats": {
    },
  • "type": "PERSON",
  • "name": "Sample Full Name",
  • "email": "sample.email@email.com",
  • "avatarId": null,
  • "background": null,
  • "overviewImage": null,
  • "headline": "Sample Headline",
  • "summary": null,
  • "legalEntityId": null,
  • "location": null,
  • "passwordUpdatedAt": null,
  • "canInviteExternal": false,
  • "optIntoMarketingEmail": false,
  • "groups": [ ],
  • "following": [
    ],
  • "phone": null,
  • "needsEmailVerification": false,
  • "newEmail": null,
  • "displayOrder": -299,
  • "newEmailTokenCreatedAt": null,
  • "status": "ACTIVE",
  • "tags": [ ],
  • "categories": [ ],
  • "verified": false,
  • "verifiedIdentity": false,
  • "deleted": false,
  • "deletedAt": null,
  • "businessRegistrationNumber": null,
  • "isCloudProvider": false,
  • "signedCompanyRefId": null,
  • "signedCompanyVerified": false,
  • "accountManagerEmail": null,
  • "accountManagerId": null,
  • "username": "sampleusername",
  • "updatedAt": "2024-07-19T08:15:22.521Z",
  • "createdAt": "2024-07-12T05:31:06.475Z",
  • "lastLoggedIn": "2024-07-19T08:15:22.521Z",
  • "online": false,
  • "token": null,
  • "hasAcceptedConsoleTermsOfUse": true
}