---
updatedAt: 2025-06-05T21:40:12.000Z
agentTools:
  projectIndex: https://apidocs.officient.io/llms.txt
---

# Self-service invitation

Generate a secret URL that brings a person straight to the HR self-service platform.

This URL should only be shared with the person in question. This API can enable SSO scenarios with other HR applications.

Scope required: personal.info:write

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "officient-api",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://api.officient.io"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "oauth2",
        "flows": {}
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/1.0/people/selfservice/invite_link": {
      "post": {
        "summary": "Self-service invitation",
        "description": "Generate a secret URL that brings a person straight to the HR self-service platform.",
        "operationId": "self-service-invititation",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "person_id"
                ],
                "properties": {
                  "person_id": {
                    "type": "string",
                    "description": "Officient will generate a selfservice invite link for this person"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n    \"data\": {\n        \"secret_url\": \"https://selfservice.officient.io/login/token/642/2564/765/Gq1vfrX6u4C6DqTDFX6nIA1S0kX7ljLSzCe/\"\n    }\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "secret_url": {
                          "type": "string",
                          "example": "https://selfservice.officient.io/login/token/642/2564/765/Gq1vfrX6u4C6DqTDFX6nIA1S0kX7ljLSzCe/"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": false,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```