This integration will allow you to create Teamtailor accounts for new hires.

Manifest

{
    "form": [],
    "exists": {
        "url": "https://api.teamtailor.com/v1/users/?filter[email]={{email}}",
        "method": "GET",
        "expected": "\"{{email}}\""
    },
    "execute": [
        {
            "url": "https://api.teamtailor.com/v1/users",
            "data": {
                "data": {
                    "type": "users",
                    "attributes": {
                        "name": "{{first_name}} {{last_name}}",
                        "role": "user",
                        "email": "{{email}}"
                    }
                }
            },
            "method": "POST",
            "headers": {
                "Content-Type": "application/vnd.api+json",
                "Authorization": "Token token={{TOKEN}}",
                "X-Api-Version": "20210218"
            }
        }
    ],
    "headers": {
        "Authorization": "Token token={{TOKEN}}",
        "X-Api-Version": "20210218"
    },
    "initial_data_form": [
        {
            "id": "TOKEN",
            "name": "Teamtailor API Key",
            "description": "You can find your API Key Under Settings -> API keys"
        }
    ]
}

Go to Settings -> API Key and create an Admin API Key with Write/Read Access.

More information about how to create the API Key can be found here https://support.teamtailor.com/en/articles/5963369-use-our-teamtailor-api

Comments

No comments yet.