Hikka Docs Hikka Docs
EndpointsAuth

Get auth token using OAuth

POST
/auth/oauth/{provider}

Path Parameters

provider*string

Request Body

application/json

code*string
[key: string]?never

Response Body

application/json

application/json

curl -X POST "https://api.hikka.io/auth/oauth/string" \  -H "Content-Type: application/json" \  -d '{    "code": "string"  }'
{
  "expiration": 1686088809,
  "created": 1686088809,
  "secret": "CQE-CTXVFCYoUpxz_6VKrHhzHaUZv68XvxV-3AvQbnA"
}
{
  "message": "Example error message",
  "code": "example_error"
}