Skip to content

dbo.ApiTokens ​

Info Generated by scripts/Generate-DataDictionary.ps1 - do not edit by hand. Edit descriptions in schemas/tables/dbo.ApiTokens.json and regenerate.

Columns ​

#ColumnTypeNullableFlagsDescription
1IdintnoidentitySurrogate primary key for the stored API token record.
2SystemNamenvarchar(100)noName of the external system/integration this OAuth token belongs to (e.g. Prime Ecosystem, OptimoRoute).
3AccessTokennvarchar(MAX)noOAuth access token used to authenticate calls to the external system's API.
4RefreshTokennvarchar(MAX)yesOAuth refresh token used to obtain a new access token once the current one expires.
5TokenTypenvarchar(50)yesOAuth token type returned by the provider (e.g. "Bearer").
6ExpiresInintyesToken lifetime in seconds from RetrievedAt, as returned by the OAuth provider.
7RetrievedAtdatetime2(0)yesTimestamp when this token was fetched/refreshed from the external system.
8ExpiresAtdatetime2(0)yescomputedComputed expiry timestamp (RetrievedAt + ExpiresIn) after which the token must be refreshed.

Indexes ​

NameTypeUniquePKKey columnsIncludedFilter
PK__ApiToken__3214EC078DA25450CLUSTEREDyesyesId

Referenced by ​

Procedures: dbo.spEthClearApiTokens, dbo.spEthGetLastApiToken, dbo.spEthResolveAppointmentContext, dbo.spPrimeUpsertApiToken