Skip to main content
Organization

User

Request
curl https://api.tapeapp.com/v1/user \
-H "Authorization: Bearer $TAPE_TOKEN"
Response
{
"user_id": 10000,
"org_id": 1337,
"org_name": "Acme Inc.",
"name": "Juliet Adams",
"status": "active",
"role": "owner",
"email": "juliet@acme.com",
"phone": "555 123 456",
"job_description": "Founder & CEO",
"authentication": {
"method": "personal_access_token",
"scopes": ["apps:read", "records:read"],
"content_access": {
"scope": "selected",
"workspace_ids": [42],
"app_ids": []
}
}
}
Request
curl https://api.tapeapp.com/v1/org/user \
-H "Authorization: Bearer $TAPE_TOKEN"
Response
{
"users": [
{
"user_id": 10000,
"name": "Juliet Adams",
"org_id": 1337,
"status": "active",
"email": "juliet@acme.com",
"phone": "555 123 456",
"role": "owner",
"job_description": "Founder & CEO"
},
{
"user_id": 10001,
"name": "Zoe Maxwell",
"org_id": 1337,
"status": "active",
"email": "zoe@acme.com",
"phone": "555 123 457",
"role": "member",
"job_description": "Executive"
}
],
"total": 2
}
Request
curl "https://api.tapeapp.com/v1/org/user/search?query=zoe" \
-H "Authorization: Bearer $TAPE_TOKEN"
Response
{
"users": [
{
"user_id": 10001,
"name": "Zoe Maxwell",
"org_id": 1337,
"status": "active",
"email": "zoe@acme.com",
"phone": "555 123 457",
"role": "member",
"job_description": "Executive"
}
],
"total": 1
}
Request
curl -X POST https://api.tapeapp.com/v1/org/user \
-H "Authorization: Bearer $TAPE_TOKEN" \
-H "Content-Type: application/json" \
--data '{
"name": "Roger Klein",
"email": "roger@acme.com",
"role": "admin",
"skip_invitation": true
}'
Response
{
"user_id": 10002,
"name": "Roger Klein",
"org_id": 1337,
"status": "active",
"email": "roger@acme.com",
"role": "admin"
}
Request
curl -X POST https://api.tapeapp.com/v1/org/user/10002/resend-invitation \
-H "Authorization: Bearer $TAPE_TOKEN"
Response
{}
Request
curl -X POST https://api.tapeapp.com/v1/org/invitation/resend-pending \
-H "Authorization: Bearer $TAPE_TOKEN"
Response
{}

Use these endpoints to read the current user, list and search the users of your organization, and invite new users.

Use a user_id to set a user field or to add a workspace member.

Which capability do I need?

Retrieving the current user needs no capability. Listing and searching organization users needs organization:read. Adding users and resending invitations needs organization.members:manage. See Capabilities.

Coming from the Podio API?

The Tape API has no contacts endpoints, because a user is a person in your organization. Keep external contacts as records in a database app.

Retrieve the current user​

Use this endpoint to check which user a credential belongs to and what it may do.

GET/v1/userapi.tapeapp.com
Request
curl https://api.tapeapp.com/v1/user \
-H "Authorization: Bearer $TAPE_TOKEN"
Response
{
"user_id": 10000,
"org_id": 1337,
"org_name": "Acme Inc.",
"name": "Juliet Adams",
"status": "active",
"role": "owner",
"email": "juliet@acme.com",
"phone": "555 123 456",
"job_description": "Founder & CEO",
"authentication": {
"method": "personal_access_token",
"scopes": ["apps:read", "records:read"],
"content_access": {
"scope": "selected",
"workspace_ids": [42],
"app_ids": []
}
}
}

The response contains the user, the name of their organization and the authentication block of the credential. The endpoint returns only the credential's own user. Use it to find your own user_id.

phone and job_description appear only when the user has set them.

The authentication block describes the credential of the request:

personal_access_token

scopes The token's capabilities

content_access scope is all, or selected with the selected workspace_ids and app_ids

oauth_access_token

scopes The scopes of the access token

content_access {"scope": "all", "workspace_ids": [], "app_ids": []}

user_key

scopes null. A user API key has no restrictions

content_access null

Requirements: none. Works with a personal access token, an OAuth access token or a user API key.

Retrieve organization users​

Use this endpoint to list all users of your organization.

GET/v1/org/userapi.tapeapp.com
Request
curl https://api.tapeapp.com/v1/org/user \
-H "Authorization: Bearer $TAPE_TOKEN"
Response
{
"users": [
{
"user_id": 10000,
"name": "Juliet Adams",
"org_id": 1337,
"status": "active",
"email": "juliet@acme.com",
"phone": "555 123 456",
"role": "owner",
"job_description": "Founder & CEO"
},
{
"user_id": 10001,
"name": "Zoe Maxwell",
"org_id": 1337,
"status": "active",
"email": "zoe@acme.com",
"phone": "555 123 457",
"role": "member",
"job_description": "Executive"
}
],
"total": 2
}

Tape takes the organization from your credential. The example lists the users of the organization with ID 1337.

General behavior

  • The list includes deactivated users. Their status is deactivated.
  • phone and job_description appear only when the user has set them.

Requirements: organization:read. Works with a personal access token, an OAuth access token or a user API key. Guests of the organization can't list its users.

Search organization users​

Use this endpoint to find users of your organization by name.

GET/v1/org/user/search?query={query}api.tapeapp.com
Request
curl "https://api.tapeapp.com/v1/org/user/search?query=zoe" \
-H "Authorization: Bearer $TAPE_TOKEN"
Response
{
"users": [
{
"user_id": 10001,
"name": "Zoe Maxwell",
"org_id": 1337,
"status": "active",
"email": "zoe@acme.com",
"phone": "555 123 457",
"role": "member",
"job_description": "Executive"
}
],
"total": 1
}

General behavior

  • Tape returns every user whose name or short name contains query. Upper and lower case don't matter.
  • Deactivated users aren't returned.
  • total is the number of users in this response, not the number of all matches.

Requirements: organization:read. Works with a personal access token, an OAuth access token or a user API key. Guests of the organization can't search its users.

Errors

A missing or empty query, or a limit out of range, returns 400.

Query parameters

querystring

Text to search for in names and short names.

limitinteger

Number of users to return. Optional.

Add user to organization​

Use this endpoint to add a new user to your organization.

POST/v1/org/userapi.tapeapp.com
Request
curl -X POST https://api.tapeapp.com/v1/org/user \
-H "Authorization: Bearer $TAPE_TOKEN" \
-H "Content-Type: application/json" \
--data '{
"name": "Roger Klein",
"email": "roger@acme.com",
"role": "admin",
"skip_invitation": true
}'
Response
{
"user_id": 10002,
"name": "Roger Klein",
"org_id": 1337,
"status": "active",
"email": "roger@acme.com",
"role": "admin"
}

Tape sends the new user an invitation email. To skip it, set skip_invitation to true and send the invitation later with Resend user invitation email.

Which organization roles can I give?

Set role to "owner", "admin", "member" or "guest". These are the organization roles described in the Help Center. You can't give a role higher than your own, and adding admins and members is billable.

Requirements: organization.members:manage, and the Owner or Admin role in the organization. Works with a personal access token, an OAuth access token or a user API key.

Body parameters

namestring

Required. Name of the user.

emailstring

Required. Email address of the user.

rolestring

Required. One of owner, admin, member or guest.

skip_invitationboolean

Don't send the invitation email (default: false).

Resend user invitation email​

Use this endpoint to send the invitation email to an organization user again.

POST/v1/org/user/{user_id}/resend-invitationapi.tapeapp.com
Request
curl -X POST https://api.tapeapp.com/v1/org/user/10002/resend-invitation \
-H "Authorization: Bearer $TAPE_TOKEN"
Response
{}

Use it to invite a user you created with skip_invitation. You can send it more than once.

Requirements: organization.members:manage, and the Owner or Admin role in the organization. Works with a personal access token, an OAuth access token or a user API key.

Resend pending invitations​

Use this endpoint to send all pending invitation emails of your organization again.

POST/v1/org/invitation/resend-pendingapi.tapeapp.com
Request
curl -X POST https://api.tapeapp.com/v1/org/invitation/resend-pending \
-H "Authorization: Bearer $TAPE_TOKEN"
Response
{}

Requirements: organization.members:manage, and the Owner or Admin role in the organization. Works with a personal access token, an OAuth access token or a user API key.

Need to change or delete users?

The API has no endpoints to change or delete existing users. Create a feature request in the Tape Community.

Next steps​