Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Attributes of the HTTP response

Success response

token

string

required

A security token required for future API usage.

expired

string

required

Date and time when the security token expires.
MySQL format for datetime: {{ YYYY-MM-DD hh:mm:ss }}

Failed response

error

string

required

It contains a reason for the failed request.

Examples

As previously stated, to procure a security token, it is imperative to dispatch a POST HTTP request to the /api/token endpoint of the API. Below, instances of potential communication between the API and consumers are provided.

...

Throughout the lifespan of a security token, consumers are entitled to submit requests to various endpoints within the API. Upon receiving the first response indicating an invalid request, consumers of the API should initiate the retrieval of a new security token.

Drawio
mVer2
zoom1
simple0
zoominComment10
inCommentcustContentId03174596654
pageId3173417034
custContentIdlbox31745966541
diagramDisplayNameUntitled Diagram-1706625269110.drawiolbox1
contentVer2
revision2
baseUrlhttps://thinksurance.atlassian.net/wiki
diagramNameUntitled Diagram-1706625269110.drawio
pCenter0
width271
links
tbstyle
height481

...