curl --request GET \
--url https://api.withampersand.com/v1/my-info \
--header 'Authorization: Bearer <token>'{
"builder": {
"id": "builder-id-123",
"idpProvider": "clerk",
"idpRef": "<string>",
"createTime": "2023-11-07T05:31:56Z",
"firstName": "<string>",
"lastName": "<string>",
"fullName": "<string>",
"primaryEmail": "<string>"
},
"projectRoles": {},
"orgRole": {
"role": "admin",
"principalType": "team",
"principalId": "builder-id-123",
"org": {
"id": "9f7c3e2a-61b8-4f5c-8d1a-eb24f3b05d79",
"label": "Acme Inc",
"defaultTeamId": "<string>",
"createTime": "2023-11-07T05:31:56Z",
"updateTime": "2023-11-07T05:31:56Z"
}
}
}curl --request GET \
--url https://api.withampersand.com/v1/my-info \
--header 'Authorization: Bearer <token>'{
"builder": {
"id": "builder-id-123",
"idpProvider": "clerk",
"idpRef": "<string>",
"createTime": "2023-11-07T05:31:56Z",
"firstName": "<string>",
"lastName": "<string>",
"fullName": "<string>",
"primaryEmail": "<string>"
},
"projectRoles": {},
"orgRole": {
"role": "admin",
"principalType": "team",
"principalId": "builder-id-123",
"org": {
"id": "9f7c3e2a-61b8-4f5c-8d1a-eb24f3b05d79",
"label": "Acme Inc",
"defaultTeamId": "<string>",
"createTime": "2023-11-07T05:31:56Z",
"updateTime": "2023-11-07T05:31:56Z"
}
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Information about the current user and their organizations and projects
Show child attributes
The builder ID.
"builder-id-123"
The identity provider
"clerk"
ID used by the identity provider
The time that the builder joined Ampersand.
A map of project IDs to project roles for the builder.
Show child attributes
Show child attributes
The role of the builder in the project.
"admin"
The type of the principal.
team, builder The ID of the team or builder.
"builder-id-123"
Show child attributes
The project ID.
"my-project"
The project name.
"mailmonkey-staging"
The name of the application, which is displayed to end users.
"MailMonkey"
The time the project was created.
The organization ID that this project belongs to.
"9f7c3e2a-61b8-4f5c-8d1a-eb24f3b05d79"
The time the project was updated.
The entitlements for the project.
Show child attributes
The role of the builder in the org.
"admin"
The type of the principal.
team, builder The ID of the team or builder.
"builder-id-123"
Show child attributes
The organization ID.
"9f7c3e2a-61b8-4f5c-8d1a-eb24f3b05d79"
The organization label.
"Acme Inc"
The ID of the Everyone team for the org.
The time the organization was created.
The time the organization was updated.
Was this page helpful?