Skip to content

Latest commit

 

History

History
44 lines (36 loc) · 719 Bytes

heartbeat.mdx

File metadata and controls

44 lines (36 loc) · 719 Bytes
title description
API Reference
Learn how to get started with Datalink's API

import {Code} from '../../../../components/code'; import Link from 'next/link';

/heartbeat

Checks if the current sessionKey is valid.

Request Body

```json { "id": 1, // Number: UserID "token": "session_key" // String: sessionKey provided from /auth } ```

Response

  1. Valid:
```json { "code": 200, // Number: IETF Status Code "status": "Session Key OK", // String: Success } ```
  1. Invalid:
```json { "code": 401, // Number: IETF Status Code "status": "Session Key Invalid", // String: Success } ```