Adlyft
  1. Ads Account 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. Ads Account Mangment

Assign ad account

Developing
POST
{teamId}/ads-accounts/assign
This endpoint is used to give permssion to one of your team members to specific ad account.

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Path Params

Header Params

Body Params application/jsonRequired

Examples

Responses

🟢200Created
application/json
Body

🔴500Internal Server Error
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://staging.api.adlyft.otomatika.net/api/v1/62e05f89-9647-4528-9133-85816bcc7cd1/ads-accounts/assign' \
--header 'x-api-key: $2b$10$C8E9k7I903VNRc3xvvatou2i9kZhth9ssY7PDD8EFUlT.LR.woOXu' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "adAccountId": "string",
    "externalUserId": "string",
    "permission": "MANAGER"
}'
Response Response Example
200 - Example 1
{
    "id": "string",
    "permission": "string",
    "updatedAt": "string",
    "createdAt": "string",
    "adsAccount": {
        "accountId": "string"
    }
}
Modified at 2025-10-29 10:43:01
Previous
Ads Account Mangment
Next
Revoke ad account
Built with