---
title: "Create an affiliation"
method: POST
path: "/affiliations"
tags: ["Affiliations"]
---

# Create an affiliation

`POST /affiliations`

## Request

- Base URL: `https://api.xfa.tech`
- URL: `https://api.xfa.tech/affiliations`
- Auth: HTTP bearer

## Request body

- AffiliationRequestBody
  - `device_token` string, required: Device token
  - `invitation_token` string, required: Invitation token

## Response `200`

Affiliation created

---

[API](https://skmtc.dev/xfa/apis/xfa-api.md) · [All operations](https://skmtc.dev/xfa/apis/xfa-api/llms.txt) · [OpenAPI document](https://skmtc.dev/xfa/apis/xfa-api/revisions/1a1be0e8972b?raw)
