Skip to content

Session

In order to access privileged data you'll on any ving endpoint you'll need to pass a session id via an HTTP header cookie.

Relationships

NameRecordTypeEndpoint
userUserParent/api/v1/session/:id/user

Endpoints

Login / Create

POST /api/v1/session

{
    "apiKey" : "1b8e4f16-08ca-4829-befe-865cec37679b",
    "privateKey" : "pk_fd17bc887c7a00a1fffcb06a97961806616e"
}

Read

GET /api/v1/session/:id
Cookie: vingSessionId=xxx

Logout / Delete

DELETE /api/v1/session/:id
Cookie: vingSessionId=xxx

Or

DELETE /api/v1/session
Cookie: vingSessionId=xxx