Skip to main content

Authentication

Learn how to authenticate with the Roecny API.

Authentication Login​

This API authenticates and retrieves an access token for API operations.To get started, you must first obtain an access token, which is required to access all other API endpoints. Use your unique Client ID and X-API Key to call the Authentication API. Upon a successful request, you will receive a unique Auth Code that remains valid for approximately 30 minutes. During this period, you can make API calls using the token. Once the Auth Code expires, you will need to generate a new one to continue accessing the APIs.

    POST {{baseUrl}}/api/v1/authentication/login

Description

This endpoint authenticates the client and returns an access token with specified permissions.

Request Headers

ParameterTypeRequiredDescription
x-client-idstringYesClient identification key
x-api-keystringYesAPI secret key for authentication
Content-TypestringYesMust be application/json

Request Examples

curl --location --request POST '{{baseUrl}}/api/v1/authentication/login' \
--header 'x-client-id: Shared By Roecny' \
--header 'x-api-key: Shared By Roecny' \
--data ''

Response Example

{
"expires_at": "2025-04-25T07:27:04+0000",
"token": "eyJhbGciOiJIUzI1NiJ9.eyJ0eXBlIjoiY2xpZW50IiwiZGMiOiJISyIsImRhdGFfY2VudGVyX3JlZ2lvbiI6IkhLIiwiaXNzZGMiOiJVUyIsImp0aSI6ImMxMTNkMTExLWNmYzgtNDM2NS1hYzY1LWJkNjFhYTg2ZDRhMCIsInN1YiI6ImE1MzI1YzU2LWZhOTAtNDFkMy04YmFmLTQ5NDllYjVlNzc2MCIsImlhdCI6MTc0NTU2NDIyNCwiZXhwIjoxNzQ1NTY2MDI0LCJhY2NvdW50X2lkIjoiNzViMjBjNzgtMjJmYy00ZTAwLWFlOGYtNmEwNTc3MDlhZmFjIiwiYXBpX3ZlcnNpb24iOiIyMDI1LTAyLTE0IiwicGVybWlzc2lvbnMiOlsicjphd3g6KjoqIiwidzphd3g6KjoqIl19.p0jS8JVg-svRtQZ5Hw-CWmJiDriXBnyoVUgWZLAHYAA"
}