Archived Version: v2026.02
You are viewing an archived reference version.
Issue an access token and a refresh token with your API account credentials.
/api/v1/auth/tokenIssue a new Access Token and Refresh Token with your API account credentials (username and password).
Call this endpoint once when your integration starts, or again whenever the refresh token has expired.
API account credentials are not issued from the dashboard. Request them from contact@deeplyinc.com, and Deeply will send them to you by email.
This endpoint does not use an Authorization header. Send the API account credentials in the JSON request body.
access_token: Bearer token for normal API requests and WebSocket connectionsrefresh_token: token used only with Reissue Tokentoken_type: always Bearerexpires_in: access token lifetime in seconds (3600 by default)The refresh token is valid for 30 days by default.
{
"access_token": "string",
"refresh_token": "string",
"token_type": "Bearer",
"expires_in": 3600
}const response = await fetch('http://{{EDGE_IP}}:8100/api/v1/auth/token', {
method: 'POST',
headers: {
"Content-Type": "application/json"
},
body: JSON.stringify({
"username": "api",
"password": "YOUR_PASSWORD"
})
});
const data = await response.json();