---
agent:
  instructions: "Use this search API to find relevant content across this site with keywords or natural-language queries, instead of crawling individual pages. Results are returned in Markdown."
  endpoint: "https://truto.one/.well-known/search?q={query}"
  method: "GET"
  documentation: "https://developers.cloudflare.com/ai-search/how-to/search-for-agents/"
---

# Finish a social sign-up

> Source: https://truto.one/docs/api-reference/admin/authentication/social-signup/

`GET /auth/signup/social`

Resource: **Authentication**

The last step of signing up with Google, GitHub or Microsoft from the signup page. After the provider verified the email and no account has it, the API redirects the browser here with a one-time ticket for the chosen data region. Opening it makes the account (team, 3 environments, admin user) with the email already verified, sets the `session` cookie and redirects to the dashboard. The ticket works once, for 60 seconds. A refused ticket, or a deployment that does not offer signup, redirects to the dashboard's error page. So does a free or disposable email domain, with `code=work_email_required` in the query.

## Query parameters

- **`ticket`** _(string, required)_
  The `trtss_{region}_{body}.{mac}` ticket the provider callback issued.

## Code examples

### curl

```bash
curl -X GET 'https://api.truto.one/auth/signup/social' \
  -H 'Authorization: Bearer <your_api_token>' \
  -H 'Content-Type: application/json'
```

### JavaScript

```javascript
const response = await fetch('https://api.truto.one/auth/signup/social', {
  method: 'GET',
  headers: {
    'Authorization': 'Bearer <your_api_token>',
    'Content-Type': 'application/json',
  },
});

const data = await response.json();
console.log(data);
```

### Python

```python
import requests

url = "https://api.truto.one/auth/signup/social"
headers = {
    "Authorization": "Bearer <your_api_token>",
    "Content-Type": "application/json",
}
params = {
}

response = requests.get(url, headers=headers, params=params)
print(response.json())
```
