# PhantAuth API

> PhantAuth API on Apizie: 10 endpoints (Create a Client Selfie, Get a Client, Get a Client Token, Get a Domain, …) returned as clean JSON through one API key. 10 endpoints are live now. Call it over REST at https://apizie.tech/v1/open-data:phantauth/{endpoint} or from Claude, ChatGPT and Cursor through the Apizie MCP server. Free plan: 1,000 requests a month.

- Project key: `open-data:phantauth`
- Category: Open Data
- Status: live
- Source: https://phantauth.net
- Page: https://apizie.tech/api/open-data/phantauth
- OpenAPI: https://apizie.tech/api/open-data/phantauth/openapi.json

Random User Generator + OpenID Connect Provider. Like Lorem Ipsum, but for user accounts and authentication. The PhantAuth API documentation is available on the following API documentation sites: -…

## Endpoints

### Create a Client Selfie
`POST https://apizie.tech/v1/open-data:phantauth/post-client`

| Parameter | Type | Required | Description |
|---|---|---|---|
| body | object | no | JSON request body |

### Get a Client
`GET https://apizie.tech/v1/open-data:phantauth/get-client-client-id`

| Parameter | Type | Required | Description |
|---|---|---|---|
| client_id | string | yes | A client ID or email. |

### Get a Client Token
`GET https://apizie.tech/v1/open-data:phantauth/get-client-client-id-token-kind`

| Parameter | Type | Required | Description |
|---|---|---|---|
| client_id | string | yes | A client ID or email. |
| kind | string | yes | Token type |

### Get a Domain
`GET https://apizie.tech/v1/open-data:phantauth/get-domain-domainname`

| Parameter | Type | Required | Description |
|---|---|---|---|
| domainname | string | yes | The domain ID integrated in the `sub` property. |

### Get a Fleet
`GET https://apizie.tech/v1/open-data:phantauth/get-fleet-fleetname`

| Parameter | Type | Required | Description |
|---|---|---|---|
| fleetname | string | yes | The identifier or email address of the fleet; it is integrated in the `sub` property and is the basis of the other generated properties. |

### Get a Team
`GET https://apizie.tech/v1/open-data:phantauth/get-team-teamname`

| Parameter | Type | Required | Description |
|---|---|---|---|
| teamname | string | yes | The identifier or email address of the team; it is integrated in the `sub` property and is the basis of the other generated properties. |

### Get a Tenant
`GET https://apizie.tech/v1/open-data:phantauth/get-tenant-tenantname`

| Parameter | Type | Required | Description |
|---|---|---|---|
| tenantname | string | yes | The tenant ID integrated in the `sub` property. |

### Create a User Selfie
`POST https://apizie.tech/v1/open-data:phantauth/post-user`

| Parameter | Type | Required | Description |
|---|---|---|---|
| body | object | no | JSON request body |

### Get a User
`GET https://apizie.tech/v1/open-data:phantauth/get-user-username`

| Parameter | Type | Required | Description |
|---|---|---|---|
| username | string | yes | The username or email used for generation purposes. |

### Get a User Token
`GET https://apizie.tech/v1/open-data:phantauth/get-user-username-token-kind`

| Parameter | Type | Required | Description |
|---|---|---|---|
| username | string | yes | A username or email. |
| kind | string | yes | Token type |
| scope | string | no | OpenID Connect scope |

## Example
```
curl "https://apizie.tech/v1/open-data:phantauth/post-client" \
  -H "x-api-key: $APIZIE_KEY"
```

## FAQ

### How do I call the PhantAuth API?
Create a free Apizie key, then send POST https://apizie.tech/v1/open-data:phantauth/post-client with the header x-api-key. Every endpoint returns { project, data, timestamp }.

### Is the PhantAuth API free on Apizie?
Yes. The Free plan includes 1,000 requests a month at 100 requests a minute, no credit card.

### Can AI agents use the PhantAuth API?
Yes. Add the Apizie MCP server (https://apizie.tech/mcp) to Claude, ChatGPT, Cursor or VS Code, then ask in plain language. The agent calls run_scraper with project key open-data:phantauth.

### What is the status of the PhantAuth API?
Live: works with just an Apizie key
