LogoLogo
  • Endorsed Platform Overview
  • API Overview
  • Data Import
  • Candidate Querying
  • Support
  • Common Workflows
    • Applicant Tracking Systems
      • Bring AI-powered candidate search to your users
      • Bring lookalike search to your users
      • Bring AI-powered evaluations to your users
    • Recruitment Marketplaces
      • Screen New Marketplace Applicants for Internal Team
      • Find, Score, and Summarize Talent for Client Jobs for Internal Team
      • Talent Search APIs for Your Users
  • Reference
    • API Reference
      • Access Tokens
      • Jobs
      • Spotlights
      • Job Criteria
      • Nomination Stages
      • Candidates
      • Nominations
      • Attachments
      • Rankings
      • Summaries
      • Tags
      • Candidate Tags
      • Job Tags
      • Criterion Evaluations
      • SDK (Coming Soon)
      • Quick Start (Coming Soon)
  • Resources
    • How to Write Good Evaluation Criteria
    • HIRE Accuracy Benchmark
      • HIRE Benchmark: Setting the Standard for Candidate Evaluation AI
Powered by GitBook

© 2024 Endorsed

On this page
  • Create a tag
  • Get an existing tag
  • Delete an existing tag
  1. Reference
  2. API Reference

Tags

A generic tag that could be be applied to candidates

Create a tag

POST https://endorsed.ai/api/v1/tags

Creates a new tag and returns the tag's UUID id. Tags are also unique by the following fields (tag_type, is_standardized, and name) as these fields serve as a composite key in addition to the unique id field.

Headers

Name
Type
Description

Authorization*

string

Authorization header containing the Bearer Access Token from the /auth/tokens endpoint. Example: Bearer <ACCESS_TOKEN>

Content-Type

string

Must be application/json. If not set, defaults to application/json

Request Body

Name
Type
Description

tag_type*

string

The type of the tag:

preferred_role_title

,

experience_based_role_title

, or

specialty_name

is_standardized*

boolean

Whether the tag is a organization-wide standardized tag (as opposed to generated by users).

name*

string

The name of the tag

description

string

Human-readable description of the tag

{
  "is_error": false,
  "result": {
    "id": "ec8e6d58-65f5-44e5-998C-6b50701164fd"
  }
}
{
  "is_error": true,
  "error": {
    "code": "UNAUTHENTICATED",
    "issues": [
      {
        "message": "Resource requires authentication. Please provide a valid access token."
      }
    ]
  }
}
{
  "is_error": true,
  "error": {
    "code": "INTERNAL_SERVER_ERROR",
    "issues": [
      {
        "message": "An unexpected error occurred on our end. Please try again later, and if the problem persists, contact our support team"
      }
    ]
  }
}

Examples:

curl -X POST "${BASE_URL}/api/v1/tags" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${ACCESS_TOKEN}" \
-d '{
  "tag_type": "specialty_name",
  "is_standardized": true,
  "name": "Videographer",
  "description": "Adept in filming and operating camera equipment"
}'

Get an existing tag

GET https://endorsed.ai/api/v1/tags/{id}

Get an existing tag by it's UUID id.

Path Parameters

Name
Type
Description

id*

string

UUID id of the tag

Headers

Name
Type
Description

Authorization*

string

Authorization header containing the Bearer Access Token from the /auth/tokens endpoint. Example: Bearer <ACCESS_TOKEN>

{
  "is_error": false,
  "result": {
    "id": "ec8e6d58-65f5-44e5-998C-6b50701164fd",
    "tag_type": "specialty_name",
    "is_standardized": true,
    "name": "Videographer",
    "description": "Adept in filming and operating camera equipment",
    "created_at": "2023-09-25T22:06:01.000Z"
  }
}
{
  "is_error": true,
  "error": {
    "code": "UNAUTHENTICATED",
    "issues": [
      {
        "message": "Resource requires authentication. Please provide a valid access token."
      }
    ]
  }
}
{
  "is_error": true,
  "error": {
    "code": "FORBIDDEN",
    "issues": [
      {
        "message": "Access to this resource is not authorized."
      }
    ]
  }
}
{
  "is_error": true,
  "error": {
    "code": "NOT_FOUND",
    "issues": [
      {
        "message": "This resource entity does not exist."
      }
    ]
  }
}
{
  "is_error": true,
  "error": {
    "code": "INTERNAL_SERVER_ERROR",
    "issues": [
      {
        "message": "An unexpected error occurred on our end. Please try again later, and if the problem persists, contact our support team"
      }
    ]
  }
}

Examples:

curl -X GET "${BASE_URL}/api/v1/tags/ec8e6d58-65f5-44e5-998c-6b50701164fd" \
-H "Authorization: Bearer ${ACCESS_TOKEN}"

Delete an existing tag

DELETE https://endorsed.ai/api/v1/tags/{id}

Deletes an existing tag by it's UUID id.

Path Parameters

Name
Type
Description

id*

string

UUID id of the tag

Headers

Name
Type
Description

Authorization*

string

Authorization header containing the Bearer Access Token from the /auth/tokens endpoint. Example: Bearer <ACCESS_TOKEN>

{
  "is_error": false,
  "result": {
    "id": "ec8e6d58-65f5-44e5-998C-6b50701164fd"
  }
}
{
  "is_error": true,
  "error": {
    "code": "UNAUTHENTICATED",
    "issues": [
      {
        "message": "Resource requires authentication. Please provide a valid access token."
      }
    ]
  }
}
{
  "is_error": true,
  "error": {
    "code": "FORBIDDEN",
    "issues": [
      {
        "message": "Access to this resource is not authorized."
      }
    ]
  }
}
{
  "is_error": true,
  "error": {
    "code": "NOT_FOUND",
    "issues": [
      {
        "message": "This resource entity does not exist."
      }
    ]
  }
}
{
  "is_error": true,
  "error": {
    "code": "INTERNAL_SERVER_ERROR",
    "issues": [
      {
        "message": "An unexpected error occurred on our end. Please try again later, and if the problem persists, contact our support team"
      }
    ]
  }
}

Examples:

curl -X DELETE "${BASE_URL}/api/v1/tags/ec8e6d58-65f5-44e5-998c-6b50701164fd" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${ACCESS_TOKEN}"

Last updated 1 year ago