Adlyft
  1. Auth Mangment
Adlyft
  • Introduction
  • Getting Started
  • Auth Mangment
    • Get User Token
      POST
    • Refresh User Token
      GET
  • Workspace Mangment
    • Create Workspace
      POST
    • Get single workspace
      GET
    • Update Workspace
      PATCH
    • Delete Worksapace
      DELETE
    • Change Workspace Admin
      PATCH
  • Team Mangment
    • Create Team
      POST
    • Get Enterprise Team
      POST
    • Assign member
      POST
    • Get team members
      GET
    • Get Team By ID
      GET
    • Update Team Name
      PATCH
    • Delete Team
      DELETE
  • Connection
    • Create Connection
      POST
    • Get all tenant connections
      GET
    • Get connections by teamId
      GET
    • List of ad accounts and their connection statuses.
      GET
    • Delete connection
      DELETE
    • Disconnect
      DELETE
    • Get insights
      GET
  • Ads Account Mangment
    • Assign ad account
      POST
    • Revoke ad account
      POST
    • Change ad account
      POST
  • Meta
    • Campaigns
      • Get Campaigns
      • Update Campaign Status
      • Create Lead Campaign
      • Create Traffic Campaign
      • Create Sales Campaign
      • Create Awareness Campaign
      • Create Engagement Campaign
    • Lead Form
      • Get Page Lead forms
      • Create Page Lead form
    • Pixels
      • Get Pixels
      • Create Pixel
    • Audience
      • Get Saved Audience
      • Get Custom Audience
    • Import
    • Facebook pages
    • Targeting Search
    • Get Ads
    • Get AdSet
    • Get AdCreative
    • Get Insights
  1. Auth Mangment

Get User Token

Developing
POST
auth/token
This endpoint allows you to create a new user account in your application by providing the required registration details. You cannot use our APIs without a valid token. The token must belong to the same user who will be making the API calls — not a user who is simply assigned to a team, for example.

Request

Header Params

Body Params application/json

Examples

Responses

🟢201Created
application/json
Body

🟠400Invalid request body
🟠401Missing or invalid API key
🟠404404 — Tenant not found
🔴500500 — Internal Server Error
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://staging.api.adlyft.otomatika.net/api/v1/auth/token' \
--header 'x-api-key: ' \
--header 'Content-Type: application/json' \
--data-raw '{
    "clientId": "asdasd",
    "clientSecret": "asddsa",
    "grantType": "client_credentials",
    "externalUserId": "1"
}'
Response Response Example
201 - Example 1
{
    "accessToken": "string",
    "refreshToken": "string"
}
Modified at 2025-12-07 13:21:59
Previous
Auth Mangment
Next
Refresh User Token
Built with