Skip to content
coinkun Docs API v1
Coinkun home Dashboard

Authorization

Authenticate protected requests with an account Transfer Key or a Bearer access token.

Examples use LTC unless stated otherwise. Use IDs and addresses for the selected currency.

On this page

#Login

POST /auth/login Available

Exchange an Account ID or Wallet ID and its Transfer Key for an access token and a refresh token. The access token lasts 10 minutes; the session lasts up to 30 days.

URL
https://coinzaka.com/api/v1/auth/login
Content type
application/json

Parameters

ParameterTypeDescriptionRequired
loginstringAccount ID or Wallet ID.Required
passwordstringTransfer Key of that Account or wallet.Required
curl --request POST "https://coinzaka.com/api/v1/auth/login" \
  --header 'Content-Type: application/json' \
  --data-binary @- <<JSON
{
  "login": "${ACCOUNT_ID:?Set ACCOUNT_ID}",
  "password": "${TRANSFER_KEY:?Set TRANSFER_KEY}"
}
JSON

Bash: set ACCOUNT_ID, TRANSFER_KEY before running. Replace placeholders in the JSON Request tab. Responses are illustrative. Keep credentials on your server and out of shared code.

#Refresh Tokens

POST /auth/refresh-token Available

Send the refresh token in the Authorization header with no request body. A successful refresh replaces both tokens and invalidates the previous pair.

URL
https://coinzaka.com/api/v1/auth/refresh-token
Content type
application/json
Authorization
Authorization: Bearer token.
Authorization
Bearer REFRESH_TOKENRequired

Parameters

ParameterTypeDescriptionRequired
AuthorizationstringBearer refresh token.Required
curl --request POST "https://coinzaka.com/api/v1/auth/refresh-token" \
  --header "Authorization: Bearer ${REFRESH_TOKEN:?Set REFRESH_TOKEN}"

Bash: set REFRESH_TOKEN before running. Responses are illustrative. Keep credentials on your server and out of shared code.

#Logout

POST /auth/logout Available

Revoke the current session using its access token. Both tokens become invalid.

URL
https://coinzaka.com/api/v1/auth/logout
Content type
application/json
Authorization
Authorization: Bearer token.
Authorization
Bearer ACCESS_TOKENRequired

Parameters

ParameterTypeDescriptionRequired
AuthorizationstringBearer access token.Required
curl --request POST "https://coinzaka.com/api/v1/auth/logout" \
  --header "Authorization: Bearer ${ACCESS_TOKEN:?Set ACCESS_TOKEN}"

Bash: set ACCESS_TOKEN before running. Responses are illustrative. Keep credentials on your server and out of shared code.

#Protected Endpoints

Available

CredentialPlacementUse
Transfer Keytransfer-key query parameter or JSON body fieldProtected account operations
Access tokenAuthorization: Bearer ACCESS_TOKENProtected account operations and logout
Refresh tokenAuthorization: Bearer REFRESH_TOKENToken refresh only
Coinkun API v1

Turning a preference off removes its saved values from this browser. It does not delete an account, change a payment or lock your current session. Read the storage details.

Type to search the documentation

↑↓ navigate↵ openesc close