---
updatedAt: 2026-08-27T19:30:37.000Z
agentTools:
  projectIndex: https://docs.mesta.xyz/llms.txt
---

# Create Director or Authorized Representative

Adds a Director or Authorized Representative to a sender.

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "Mesta API",
    "version": "2.0.0",
    "description": "API for cross-border payments and order management."
  },
  "servers": [
    {
      "url": "https://api.stg.mesta.xyz"
    }
  ],
  "components": {
    "schemas": {
      "SenderAssociateRole": {
        "type": "string",
        "description": "Role held by a Director or Authorized Representative.",
        "enum": [
          "director",
          "authorized_representative"
        ]
      },
      "SenderAssociateAddress": {
        "type": "object",
        "required": [
          "street",
          "city",
          "postalCode",
          "country"
        ],
        "properties": {
          "street": {
            "type": "string"
          },
          "street2": {
            "type": "string",
            "nullable": true
          },
          "city": {
            "type": "string"
          },
          "state": {
            "type": "string",
            "nullable": true
          },
          "postalCode": {
            "type": "string"
          },
          "country": {
            "type": "string",
            "pattern": "^[A-Z]{2}$"
          }
        }
      },
      "SenderAssociateIdentityInput": {
        "type": "object",
        "required": [
          "countryCode",
          "documentType",
          "documentNumber"
        ],
        "properties": {
          "countryCode": {
            "type": "string",
            "pattern": "^[A-Z]{2}$"
          },
          "documentType": {
            "type": "string",
            "description": "Supported values and front/back requirements depend on the identity country."
          },
          "documentNumber": {
            "type": "string"
          },
          "documentFront": {
            "type": "string",
            "description": "Base64 encoded front image of the identity document."
          },
          "documentBack": {
            "type": "string",
            "description": "Base64 encoded back image of the identity document."
          }
        }
      },
      "CreateSenderAssociateRequest": {
        "type": "object",
        "required": [
          "senderId",
          "roles"
        ],
        "description": "Create either a representative linked to an existing UBO or a separate person. For a separate person, firstName, lastName, birthDate, email, phone, address, and identity are required. linkedUboId and separate-person fields must not describe different people.",
        "properties": {
          "senderId": {
            "type": "string",
            "format": "uuid"
          },
          "roles": {
            "type": "array",
            "minItems": 1,
            "maxItems": 1,
            "items": {
              "$ref": "#/components/schemas/SenderAssociateRole"
            }
          },
          "linkedUboId": {
            "type": "string",
            "format": "uuid",
            "description": "Existing UBO representing the same person. Linked representatives reuse the UBO's stored data and verification session."
          },
          "firstName": {
            "type": "string"
          },
          "lastName": {
            "type": "string"
          },
          "birthDate": {
            "type": "string",
            "format": "date"
          },
          "email": {
            "type": "string",
            "format": "email"
          },
          "phone": {
            "type": "string"
          },
          "address": {
            "$ref": "#/components/schemas/SenderAssociateAddress"
          },
          "nationality": {
            "type": "string",
            "pattern": "^[A-Z]{2}$"
          },
          "identity": {
            "$ref": "#/components/schemas/SenderAssociateIdentityInput"
          },
          "pepDeclaration": {
            "type": "boolean"
          },
          "pepQuestionnaire": {
            "type": "object",
            "additionalProperties": true
          },
          "sofDocument": {
            "type": "string",
            "description": "Base64 encoded source-of-funds document."
          },
          "verificationReport": {
            "type": "string",
            "description": "Base64 encoded verification report."
          },
          "verificationReportFileName": {
            "type": "string"
          }
        }
      },
      "SenderAssociate": {
        "type": "object",
        "required": [
          "id",
          "senderId",
          "roles"
        ],
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "senderId": {
            "type": "string",
            "format": "uuid"
          },
          "firstName": {
            "type": "string"
          },
          "lastName": {
            "type": "string"
          },
          "birthDate": {
            "type": "string",
            "format": "date",
            "nullable": true
          },
          "email": {
            "type": "string",
            "format": "email",
            "nullable": true
          },
          "phone": {
            "type": "string",
            "nullable": true
          },
          "address": {
            "$ref": "#/components/schemas/SenderAssociateAddress"
          },
          "identity": {
            "type": "object",
            "additionalProperties": true
          },
          "nationality": {
            "type": "string",
            "pattern": "^[A-Z]{2}$",
            "nullable": true
          },
          "roles": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SenderAssociateRole"
            }
          },
          "linkedUboId": {
            "type": "string",
            "format": "uuid",
            "nullable": true
          },
          "kyc": {
            "type": "object",
            "nullable": true,
            "properties": {
              "status": {
                "type": "string",
                "enum": [
                  "unverified",
                  "pending",
                  "approved",
                  "declined"
                ]
              },
              "statusUpdatedAt": {
                "type": "string",
                "format": "date-time"
              }
            }
          },
          "pepDeclaration": {
            "type": "boolean",
            "nullable": true
          },
          "pepQuestionnaire": {
            "type": "object",
            "nullable": true,
            "additionalProperties": true
          },
          "documents": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": true
            }
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "SenderAssociateEnvelope": {
        "type": "object",
        "required": [
          "data",
          "requestId"
        ],
        "properties": {
          "data": {
            "$ref": "#/components/schemas/SenderAssociate"
          },
          "requestId": {
            "type": "integer"
          }
        }
      },
      "ErrorResponse": {
        "type": "object",
        "properties": {
          "error": {
            "type": "object",
            "description": "Error details",
            "properties": {
              "CODE": {
                "type": "string",
                "description": "Machine-readable error code",
                "example": "INVALID_TOKEN"
              },
              "MESSAGE": {
                "type": "string",
                "description": "Human-readable error message",
                "example": "The token provided is invalid"
              },
              "DETAILS": {
                "type": "array",
                "description": "Additional error details for validation errors",
                "items": {
                  "type": "string"
                },
                "nullable": true
              }
            },
            "required": [
              "CODE",
              "MESSAGE"
            ]
          },
          "requestId": {
            "type": "integer",
            "description": "Unique request identifier for debugging",
            "example": 177021679
          }
        }
      }
    },
    "securitySchemes": {
      "apiKeyAuth": {
        "type": "apiKey",
        "in": "header",
        "name": "x-api-key",
        "description": "API Key for authentication"
      },
      "apiSecretAuth": {
        "type": "apiKey",
        "in": "header",
        "name": "x-api-secret",
        "description": "API Secret for authentication"
      }
    }
  },
  "paths": {
    "/v1/senders/associates": {
      "post": {
        "x-readme": {
          "code-samples": [
            {
              "language": "node",
              "name": "TypeScript SDK",
              "install": "npm install @mestafi/sdk",
              "code": "import { MestaClient } from \"@mestafi/sdk\";\n\nconst client = new MestaClient({ apiKey: \"YOUR_API_KEY\", apiSecret: \"YOUR_API_SECRET\" });\n\nawait client.senders.associates.create({\n    senderId: \"7e701fe5-d47b-4e44-b624-c48204cfead1\",\n    roles: [\"director\"],\n    linkedUboId: \"c4de346d-7972-4139-b132-974eca8b0606\"\n});\n"
            },
            {
              "language": "python",
              "name": "Python SDK",
              "install": "pip install mesta",
              "code": "from mesta import Mesta\n\nclient = Mesta(\n    api_key=\"YOUR_API_KEY\",\n    api_secret=\"YOUR_API_SECRET\",\n)\n\nclient.senders.associates.create(\n    sender_id=\"7e701fe5-d47b-4e44-b624-c48204cfead1\",\n    roles=[\n        \"director\"\n    ],\n    linked_ubo_id=\"c4de346d-7972-4139-b132-974eca8b0606\",\n)\n"
            }
          ]
        },
        "tags": [
          "Sender API"
        ],
        "operationId": "post_v1-senders-associates",
        "summary": "Create Director or Authorized Representative",
        "description": "Adds a Director or Authorized Representative to a business sender. Use linkedUboId when the representative is the same person as an existing UBO; otherwise provide the person's own personal, address, identity, nationality, and document data.",
        "security": [
          {
            "apiKeyAuth": [],
            "apiSecretAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateSenderAssociateRequest"
              },
              "examples": {
                "linkedUbo": {
                  "summary": "Representative is an existing UBO",
                  "value": {
                    "senderId": "7e701fe5-d47b-4e44-b624-c48204cfead1",
                    "roles": [
                      "director"
                    ],
                    "linkedUboId": "c4de346d-7972-4139-b132-974eca8b0606"
                  }
                },
                "separatePerson": {
                  "summary": "Representative is a separate person",
                  "value": {
                    "senderId": "7e701fe5-d47b-4e44-b624-c48204cfead1",
                    "roles": [
                      "authorized_representative"
                    ],
                    "firstName": "Amina",
                    "lastName": "Rahman",
                    "birthDate": "1988-04-12",
                    "email": "amina.rahman@example.com",
                    "phone": "+442071838750",
                    "nationality": "GB",
                    "address": {
                      "street": "10 Example Street",
                      "city": "London",
                      "postalCode": "SW1A 1AA",
                      "country": "GB"
                    },
                    "identity": {
                      "countryCode": "GB",
                      "documentType": "PASSPORT",
                      "documentNumber": "123456789",
                      "documentFront": "<base64-encoded-file>"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Director or Authorized Representative created.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SenderAssociateEnvelope"
                }
              }
            }
          },
          "400": {
            "description": "Invalid representative, role, identity, or linked-UBO data.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "description": "Authentication failed."
          },
          "403": {
            "description": "The merchant cannot access this sender."
          }
        }
      }
    }
  },
  "security": [
    {
      "apiKeyAuth": [],
      "apiSecretAuth": []
    }
  ],
  "x-readme": {
    "samples-languages": [
      "node",
      "python",
      "shell"
    ],
    "explorer-enabled": true,
    "proxy-enabled": true,
    "samples-enabled": true
  }
}
```